Commit b4dfcdd
committed
fix: Reveal hover-only controls on keyboard focus
The section anchors, the code-block copy button and the nav menu toggle are all
`visibility: hidden` until their container is hovered, so a keyboard user tabs
onto a control that is not drawn and cannot see where focus is. Pairing each
reveal with focus is what makes the focus rings on those three reachable
without a mouse.1 parent 6eeb459 commit b4dfcdd
2 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
140 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
141 | 149 | | |
142 | 150 | | |
143 | 151 | | |
| |||
841 | 849 | | |
842 | 850 | | |
843 | 851 | | |
844 | | - | |
| 852 | + | |
| 853 | + | |
845 | 854 | | |
846 | 855 | | |
847 | 856 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
0 commit comments