File tree 2 files changed +10
-2
lines changed
src/styles/addOutlineWidth
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 3
3
* can be added to the object
4
4
*/
5
5
6
+ import themeDefault from '../themes/default' ;
7
+
6
8
/**
7
9
* Adds the addOutlineWidth property to an object to be used when styling
8
10
*
@@ -14,6 +16,7 @@ function withOutlineWidth(obj, val) {
14
16
return {
15
17
...obj ,
16
18
outlineWidth : val ,
19
+ boxShadow : `0px 0px 0px ${ val } px ${ themeDefault . borderFocus } ` ,
17
20
} ;
18
21
}
19
22
Original file line number Diff line number Diff line change 32
32
-webkit-user-select : none !important ;
33
33
-webkit-touch-callout : none !important ;
34
34
}
35
- * : focus , * : focus-visible , [data-focusvisible-polyfill ] {
36
- outline : 1px solid # 0185ff ;
35
+ : focus-visible {
36
+ outline : 0 ;
37
+ box-shadow : 0px 0px 0px 1px # 0185ff ;
38
+ }
39
+ : focus [data-focusvisible-polyfill ] {
40
+ outline : 0 ;
41
+ box-shadow : 0px 0px 0px 1px # 0185ff ;
37
42
}
38
43
</ style >
39
44
< meta name ="viewport " content ="width=device-width, user-scalable=no, initial-scale=1 ">
You can’t perform that action at this time.
0 commit comments