💫Nested selectors (ex $ syntax)
With the Modern API and makeStyles API
//WARNING: This is legacy JSS code!
{
parent: {
padding: 30,
"&:hover $child": { // <- This do not work in TSS
backgroundColor: "red"
},
},
child: {
backgroundColor: "blue"
}
}
//...
<div className={classes.parent}>
<div className={classes.child}>
Background turns red when the mouse is hovering over the parent
</div>
</div>
withStyles
withStylesSSR

Last updated
Was this helpful?
