feat: allow focus ring on action buttons within inputs
This commit is contained in:
1 parent
1e48c91cdd
commit
8f603d1a5d
1 file changed
+3
-3
@@ -166,12 +166,12 @@ const Field = forwardRef(
|
|||||||
<IconButton
|
<IconButton
|
||||||
aria-label="toggle password visibility"
|
aria-label="toggle password visibility"
|
||||||
onClick={() => setVisible((show) => !show)}
|
onClick={() => setVisible((show) => !show)}
|
||||||
tabIndex={-1}
|
|
||||||
sx={{
|
sx={{
|
||||||
color: theme.palette.border.dark,
|
color: theme.palette.border.dark,
|
||||||
padding: theme.spacing(1),
|
padding: theme.spacing(1),
|
||||||
"&:focus": {
|
"&:focus-visible": {
|
||||||
outline: "none",
|
outline: `2px solid ${theme.palette.primary.main}`,
|
||||||
|
outlineOffset: `2px`,
|
||||||
},
|
},
|
||||||
"& .MuiTouchRipple-root": {
|
"& .MuiTouchRipple-root": {
|
||||||
pointerEvents: "none",
|
pointerEvents: "none",
|
||||||
|
|||||||
Reference in new issue
Block a user