How to change hover color of a div element to $primary color dynamically? #14036
-
How to change hover color of a div element to $primary color dynamically? I have a div element like this:
and in the style section two elements like this:
What can I do to change hover color of my "div" element dynamically? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Instead of |
Beta Was this translation helpful? Give feedback.
Instead of
$primary
which is an SCSS variable, which is static on run-time, you need to usevar(--q-primary)
, which is dynamic on run-time.https://quasar.dev/style/color-palette#dynamic-change-of-brand-colors-dynamic-theme-colors-