File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ dark = createTheme(dark, {
444
444
* customization).
445
445
*/
446
446
"&.Mui-focusVisible" : {
447
- outline : `10px auto ${ colors . blue [ 7 ] } ` ,
447
+ boxShadow : `0 0 0 2px ${ colors . blue [ 7 ] } ` ,
448
448
} ,
449
449
450
450
"&.Mui-disabled" : {
@@ -458,7 +458,9 @@ dark = createTheme(dark, {
458
458
styleOverrides : {
459
459
root : {
460
460
".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 ] } ` ,
462
464
} ,
463
465
} ,
464
466
} ,
@@ -526,7 +528,7 @@ dark = createTheme(dark, {
526
528
styleOverrides : {
527
529
root : {
528
530
"&.Mui-focusVisible" : {
529
- outline : `10px auto ${ colors . blue [ 7 ] } ` ,
531
+ boxShadow : `0 0 0 2px ${ colors . blue [ 7 ] } ` ,
530
532
} ,
531
533
} ,
532
534
} ,
You can’t perform that action at this time.
0 commit comments