What I’m trying to do:
I’m trying to update the CSS for drop down options. I have been successful in updating the styling of the drop down options generally, but completely unable to update the “hover” styling. It always remains the blue background and white lettering.
What I’ve tried and what’s not working:
I have added these lines to the CSS
note: I have all of the variable colors in a :root {}
Have you tied hard coding the colours to css values to check if it is the CSS or the CSS variable?
I have a feeling it is something to do with the CSS code and selecting the write class (?) but my CSS kung fu is not strong
Yeah, I tried some of the built-ins with no luck. The odd thing is that I can change the background and foreground color over all, it’s just the hover action that won’t work.
If this is important to your app, you might find the anvil-extras multi-select dropdown works for you. It doesn’t use the browser’s native select element and the options can therefore be styled. Though you’ll have to play around with dev tools to work out exactly what css you need to change.