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