Can't use ":checked::after" psuedo styling #832
-
Hi, I'm trying to style a custom
But this doesn't seem to work.
Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
rothsandro
Sep 18, 2022
Replies: 1 comment 1 reply
-
Only simple selectors are allowed there. For complex selectors you need the export const root = style({
// ...
selectors: {
'&:checked::after': {
backgroundColor: 'yellow',
},
}
}) See https://vanilla-extract.style/documentation/styling/#complex-selectors |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
madebydor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Only simple selectors are allowed there. For complex selectors you need the
selectors
key:See https://vanilla-extract.style/documentation/styling/#complex-selectors