File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,31 @@ const GlobalStyle = createGlobalStyle`
24
24
color: var(--lightest-slate);
25
25
}
26
26
27
+ /* Provide basic, default focus styles.*/
27
28
:focus {
28
29
outline: 2px dashed var(--green);
29
30
outline-offset: 3px;
30
31
}
31
32
33
+ /*
34
+ Remove default focus styles for mouse users ONLY if
35
+ :focus-visible is supported on this platform.
36
+ */
37
+ :focus:not(:focus-visible) {
38
+ outline: none;
39
+ outline-offset: 0px;
40
+ }
41
+
42
+ /*
43
+ Optionally: If :focus-visible is supported on this
44
+ platform, provide enhanced focus styles for keyboard
45
+ focus.
46
+ */
47
+ :focus-visible {
48
+ outline: 2px dashed var(--green);
49
+ outline-offset: 3px;
50
+ }
51
+
32
52
/* Scrollbar Styles */
33
53
html {
34
54
scrollbar-width: thin;
You can’t perform that action at this time.
0 commit comments