How to dynamically change the background color of v-tooltip? #840
Unanswered
LovelyAndy
asked this question in
Q&A
Replies: 1 comment
-
You can probably achieve this with a CSS custom property (aka variable)? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've just found this library and it's been pretty sweet thus far!
The one issue I am having is with customizing the CSS of my tooltips. I went through this whole editor and it's pretty great to work with. That being said, if I want to make the background-color dynamic, based on a color picker element, how would I go about that?
If there were an option simply for
background-color
in thev-tooltip="{}"
prop object, I could just interpolate the value that way. However, as it stands, I'm just grabbing the custom css from the style section as per the documentation.Any tips on how I might achieve this?
main.ts
App.vue
Beta Was this translation helpful? Give feedback.
All reactions