Selectors with sprinkles #824
craigbilner
started this conversation in
General
Replies: 1 comment 1 reply
-
I don't think that this is possible. The sprinkles function returns one or more class names but the You could add const styles = style([
sprinkles({ bg: { hover: "myColor" }}),
{ /* other styles, selectors, ... */ }
]); Remember that each property/value/condition combination generates a separate class even if you don't use it anywhere in the application. So depending how often you actually need to change the background color on hover it may be better to not include this in sprinkles but in a regular |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I may have misunderstood how sprinkles works, but how do I create shorthand properties in sprinkles and then use with selectors? e.g.
Beta Was this translation helpful? Give feedback.
All reactions