Reputation: 849
I have taken a look at other threads relating to this but unfortunately I am not able to change the material ui default red checked colour.
Here is my code below:
return (
<FormControl>
<FormLabel>{label}</FormLabel>
<RadioGroup row
name={name}
value={value}
onChange={onChange}
{
items.map(
item => (
<FormControlLabel key={item.id} value={item.id} control={<Radio />} label={item.title} />
)
)
}
</RadioGroup>
</FormControl>
)
I simply want to be able to change the checked radio color from red to blue.
I have tried the following but didn't work:
<Radio
{...props}
sx={{
'&, &.Mui-checked': {
color: 'blue',
},
}}
/>
Upvotes: 2
Views: 2375