Skip to content

Commit d6bf403

Browse files
committed
fix: add focus styling to switches
1 parent 6c2cb3f commit d6bf403

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

site/src/theme/theme.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,13 @@ dark = createTheme(dark, {
454454
},
455455
},
456456
MuiSwitch: {
457-
defaultProps: {
458-
color: "primary",
457+
defaultProps: { color: "primary" },
458+
styleOverrides: {
459+
root: {
460+
".Mui-focusVisible .MuiSwitch-thumb": {
461+
outline: `10px auto ${colors.blue[7]}`,
462+
},
463+
},
459464
},
460465
},
461466
MuiAutocomplete: {

0 commit comments

Comments
 (0)