Commit 32c64a6
authored
[Fix Accessibility] Add focus-visible styles to keyboard navigation (#1722)
## 📁 File Changes (5 files modified):
- `nav-drawer.js` - Added focus-visible styles to mobile menu button
- `search.js` - Added focus-visible styles to mobile search button
- `table-of-contents.js` - Added focus-visible styles to mobile TOC
summary button
- `variant-select.js` - Added focus-visible styles to CLI version
selector button
- `code.js` - Updated outlineOffset from 2px to 1px for clipboard copy
button
## 📋 Summary:
This PR improves keyboard accessibility by adding consistent
focus-visible outline styles to interactive buttons across mobile
components, ensuring better visual feedback for keyboard navigation
users.
### `Keyboard focus indicator is not visible on 'search' icon`
<img width="702" height="635" alt="image"
src="https://github.com/user-attachments/assets/cd462a2e-49e1-4f42-8355-c459f601c10a"
/>
### `Keyboard focus indicator is not visible on the 'Select CLI Version'
button`
<img width="687" height="635" alt="image"
src="https://github.com/user-attachments/assets/3435c1e1-f508-4031-bbb1-e6b70fb3b88b"
/>
### `Keyboard focus indicator is not visible on 'Table of contents`
<img width="687" height="635" alt="image"
src="https://github.com/user-attachments/assets/dafabd03-fece-4245-8d2a-b6ef0c27c163"
/>1 parent 395867f commit 32c64a6
File tree
5 files changed
+42
-4
lines changed- src
- components
- mdx
5 files changed
+42
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
80 | 92 | | |
81 | 93 | | |
82 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
117 | 128 | | |
118 | 129 | | |
119 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
57 | 67 | | |
58 | 68 | | |
59 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments