Skip to content
Discussion options

You must be logged in to vote

you can either make a custom condition that combines both of those, or just re-use the same style object like:

const conditionalStyles = css.raw({ /* ... */ })
const styles = css({
  '_focus': conditionalStyles,
  '_expanded': conditionalStyles,
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fseglard
Comment options

Answer selected by fseglard
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