For example:
.btn {bg-blue-500 text-2 text-orange-300}
.btn2 {bg-orange-500 text-2 text-blue-300}
Attempted Solution:
Edit: Apologies for the oversight in not including the code I was working with... it was late at night.
< button className="btn hover:btn2"/> <---this does not work btn2 does not actually get applied as a hover
The btn
class is displayed, but when hovering, the styling of btn2
does not appear.
If there's something obvious that I'm missing or if it's already mentioned in the documentation, please point me in the right direction.
I've searched extensively, but I keep going around in circles. I have multiple styles I want to change by applying them in different states, and it would be cumbersome if I had to create separate classes like .btn .btn2 btn2-hover btn-hover
.
Is this related to variants? Or is it due to the way CSS is interpreted in a specific order? Could it be that I expect hover to be applied to all internal CSS when it doesn't actually work that way? Do I need to make some kind of exception? Iām confused.