Skip to content

Commit 97c2bbd

Browse files
committed
fix: swap outlines for box-shadows for more styling control
1 parent d6bf403 commit 97c2bbd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

site/src/theme/theme.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ dark = createTheme(dark, {
444444
* customization).
445445
*/
446446
"&.Mui-focusVisible": {
447-
outline: `10px auto ${colors.blue[7]}`,
447+
boxShadow: `0 0 0 2px ${colors.blue[7]}`,
448448
},
449449

450450
"&.Mui-disabled": {
@@ -458,7 +458,9 @@ dark = createTheme(dark, {
458458
styleOverrides: {
459459
root: {
460460
".Mui-focusVisible .MuiSwitch-thumb": {
461-
outline: `10px auto ${colors.blue[7]}`,
461+
// Had to thicken outline to make sure that the focus color didn't
462+
// bleed into the thumb and was still easily-visible
463+
boxShadow: `0 0 0 3px ${colors.blue[7]}`,
462464
},
463465
},
464466
},
@@ -526,7 +528,7 @@ dark = createTheme(dark, {
526528
styleOverrides: {
527529
root: {
528530
"&.Mui-focusVisible": {
529-
outline: `10px auto ${colors.blue[7]}`,
531+
boxShadow: `0 0 0 2px ${colors.blue[7]}`,
530532
},
531533
},
532534
},

0 commit comments

Comments
 (0)