Skip to content

How to change hover color of a div element to $primary color dynamically? #14036

Discussion options

You must be logged in to vote

Instead of $primary which is an SCSS variable, which is static on run-time, you need to use var(--q-primary), which is dynamic on run-time.
https://quasar.dev/style/color-palette#dynamic-change-of-brand-colors-dynamic-theme-colors-

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by meo1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants