Are data-* attributes supported? #130
-
Currently evaluating stylex + radix ui and they use html data attributes like |
Beta Was this translation helpful? Give feedback.
Answered by
nmn
Dec 12, 2023
Replies: 1 comment
-
On the element itself, this can be done with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shawngustaw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.