Use focus-visible for some focus styles to fix a11y issues (#12968)

feat(a11y): fix-focus-styles
This commit is contained in:
Emmanuel Pelletier
2023-03-06 11:39:46 +01:00
committed by GitHub
parent 65730e256e
commit cfb8589bef
8 changed files with 6 additions and 21 deletions

View File

@@ -44,7 +44,7 @@ const useStyles = makeStyles()(theme => {
borderColor: theme.palette.ui10
},
'&:focus': {
'&.focus-visible': {
outline: 0,
boxShadow: `0px 0px 0px 2px ${theme.palette.focus01}`,
border: 0,