How to apply hover state given a parent className? #577
-
Say a design system has a |
Beta Was this translation helpful? Give feedback.
Answered by
michaeltaranto
Feb 11, 2022
Replies: 1 comment 2 replies
-
Hey Misha, not that this is a vanilla-extract specific solution, but what are your thoughts on making that container a From memory, hovering a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
moroshko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey Misha, not that this is a vanilla-extract specific solution, but what are your thoughts on making that container a
label
element and associating it with thebutton
via anid
?From memory, hovering a
label
triggers the hover state for the associated form element.