Skip to content

Hover on Card #2930

Closed Answered by Lukas742
giladvidal asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @giladvidal :)

I overlooked that you are using the "horizon" theme. With horizon the box-shadow on hover is integrated by design and should preferably not be changed. If you still want to change it you could overwrite the hover CSS variable to the default one:

'--_ui5_card_hover_box_shadow': 'var(--_ui5_card_box_shadow)'

Keep in mind though, that these are internal variables and that they can be changed without an entry in the change log of UI5 Web Components.

If you feel like altering the styles of the card root should be possible without overwriting CSS variables then you could also open a feature request in the UI5 Web Components repo and ask our colleagues if they could add the

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by giladvidal
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