I would like know how to work with css
class-nesting in Material-UI or in JSS
in general?
I am trying as below.
card: {
cardHeader:{
marginTop:"30px"
}
}
For JSX like
<div className={classes.card}>
<div className={classes.cardHeader}></div>
</div>
you can use:
card: {
'& $cardHeader': {
marginTop: 30,
}
}
Targeting nested classes can be helpful if you override default JSS styles in Material UI components.