I'm trying to apply style to the text inside a ListItemText
(Material UI):
const text = {
color: 'red'
}
<ListItem button><ListItemText style={text} primary="MyText" /></ListItem>
But the rendered Typograhy
element inside is not styled at all ("MyText" is not red).
Looking at the generated code, it seems that the default CSS rules for Typography
> subheading is overriding my CSS.
Thanks for your help
Edit: In the first version of the question, there was a mistake ("className" instead of "style" prop on ListItemText, sorry about that).