Support :where(&)
in style selectors
#928
AndrewLeedham
started this conversation in
Ideas
Replies: 1 comment
-
This syntax should definitely be supported, but I'm wondering if you're maybe after some sort of "default styling that can be easily overridden without overloading selector specificity" with that generic helper? If that's the case and you're using this helper across the codebase a lot you might want to switch to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
#204 added support for
&:where(...)
and&:is(...)
, but I think it would also be useful to allow:where(&)
to reduce specificity.You can of course do this with
globalStyle
today, but my use-case includes exporting this from a helper function which returnsrules
to be spread onto an existingstyle
tag, usingglobalStyle
from within that helper would be a side-effect and would also require passing a a reference to the selector that hasn't been created yet, for example:Beta Was this translation helpful? Give feedback.
All reactions