File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @primer/react ' : patch
3
+ ---
4
+
5
+ UnderlineNav2: Add transparent outline for focus to support WHCM
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ exports[`UnderlineNav renders consistently 1`] = `
56
56
}
57
57
58
58
.c4:focus {
59
- outline : 0 ;
59
+ outline : 2 px solid transparent ;
60
60
}
61
61
62
62
.c4:focus {
@@ -68,6 +68,7 @@ exports[`UnderlineNav renders consistently 1`] = `
68
68
}
69
69
70
70
.c4:focus-visible {
71
+ outline : 2px solid transparent ;
71
72
box - shadow : inset 0 0 0 2px #0969da ;
72
73
}
73
74
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export const getLinkStyles = (
94
94
} ,
95
95
} ,
96
96
'&:focus' : {
97
- outline : 0 ,
97
+ outline : '2px solid transparent' ,
98
98
'&' : {
99
99
boxShadow : `inset 0 0 0 2px ${ theme ?. colors . accent . fg } ` ,
100
100
} ,
@@ -104,6 +104,7 @@ export const getLinkStyles = (
104
104
} ,
105
105
} ,
106
106
'&:focus-visible' : {
107
+ outline : '2px solid transparent' ,
107
108
boxShadow : `inset 0 0 0 2px ${ theme ?. colors . accent . fg } ` ,
108
109
} ,
109
110
// renders a visibly hidden "copy" of the label in bold, reserving box space for when label becomes bold on selected
You can’t perform that action at this time.
0 commit comments