Skip to content

How to apply hover state given a parent className? #577

Answered by michaeltaranto
moroshko asked this question in Q&A
Discussion options

You must be logged in to vote

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 the button via an id?

From memory, hovering a label triggers the hover state for the associated form element.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@moroshko
Comment options

@graup
Comment options

graup Feb 16, 2022
Collaborator

Answer selected by moroshko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants