Is there a way to nest like in SASS #1545
Unanswered
SamuelBolduc
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You need to define createUseStyles({
active: {},
button: {
background: "grey",
"&$active": {
background: "orange",
},
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using react-jss.
In SASS, I would do something like this:
Is there a way to do the same in JSS? I tried this:
But when I want to add both classes to an element, Typescript complains that the
active
class doesn't exist.Beta Was this translation helpful? Give feedback.
All reactions