When using Material UI v4.9.12, it is possible to create a customized checkbox with a specific color that remains fixed:
const GreenCheckbox = withStyles({
root: {
color: green[400],
'&$checked': {
color: green[600],
},
},
checked: {},
})((props) => {
return <Checkbox {...props} />
}
)
However, the customization does not affect the font color and only applies when the checkbox is enabled.
Is there a way to change both? What needs to be overridden?
Currently, I have only been able to adjust the icon color using inline styling:
<GreenCheckbox style={{color: green[600]}} onChange={cb} checked={checked} disabled/>