The color
prop can only take three values (default, primary, secondary) but what if I want my radio to be green for example?
So I tried overriding with classes
prop like so :
const styles = theme => ({
radio: {
colorPrimary: {
'&$checked': {
color: 'blue'
}
},
checked: {},
}
})
And then inside the component :
<FormControlLabel
classes={{root: classes.formControlLabelRoot, label: classes.formControlLabel}}
value="week"
control={<Radio disableRipple classes={{colorPrimary: classes.radio}} />}
label="Every week (Monday at 12:00)"
/>
But this is not working.
$checked
is a back reference to the local rulechecked: {}
defined below. So if thechecked
key is, sayradioChecked
, then your rule above has to reflect that i.e.&$radioChecked: ...
– Snuffer