How Can I override focusVisible property for a Material UI radio button

3.5k views Asked by At

I am using Material UI - Radio button

I want to override their focusVisible property where you can apply styles to checkbox on focus via keyboard only

I can target the input and use native focus-visible state and apply styles but it is not well supported in older browsers.

Material UI implemented their own focusVisible state but cannot figure out how to override that. Any suggestions?

1

There are 1 answers

0
Madhuri On

Try this:

root: {
    color: 'blue',
    "&.Mui-focusVisible": {
      color: "orange"
    },
  },


Add root class,

<Radio className={classes.root}/>