Skip to content
Discussion options

You must be logged in to vote

Hi @Anindya088,

The problem is that "group-hover:" doesn't remove the other classes like "invisible" or "hidden". On hover they conflict with the new classes "visible" or "block" and the result can be either of them.

A simple workaround is to add an "important" prefix !:

with ui.row().classes('group items-center p-4 border'):
    ui.label('Hover to show icons').classes('text-lg font-bold')
    ui.icon('home', size='50px').classes('invisible group-hover:!visible')
    ui.icon('search', size='50px').classes('hidden group-hover:!inline')
    ui.icon('settings', size='50px').classes('opacity-0 group-hover:opacity-100')

(Currently this fails on 3.0.0rc1, see #5156. Hopefully we can fix it for …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Anindya088
Comment options

Answer selected by Anindya088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants