Skip to content

Are data-* attributes supported? #130

Closed Answered by nmn
shawngustaw asked this question in Q&A
Discussion options

You must be logged in to vote

On the element itself, this can be done with :is([data-state='open']) where you would otherwise use :hover. This is not a recommended pattern, however since it generates new unique CSS rather than re-using existing atomic CSS rules. It exists only as an escape hatch.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shawngustaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants