I am trying to apply style to the text inside ListItemText (Material-UI @next):
const text = {
color: 'red'
}
<ListItem button><ListItemText style={text} primary="MyText" /></ListItem>
But the edited item <Typograhy>
inside has no style ("MyText" is not red).
Looking at the generated code, it seems that the default CSS rules for signing in Typography> override my CSS.
thanks for the help
edit: There was a misunderstanding in the first version of the question ("className" instead of "style" prop on ListItemText, sorry for that).
source
share