Answer the question
In order to leave comments, you need to log in
How to combine selectors in Material-ui?
span
I want to add green color
for paragraph and tag . On normal css it will be just:
p, span { color: green }
And how to write it in makeStyles without using duplication?
const useStyles = makeStyles({
root: {
'& p': {
color: 'green',
},
'& span': {
color: 'green',
}
},
});
['& p, & span']
, but it doesn't work. I don’t see such an opportunity in the documentation (or I’m looking badly)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question