Commit 07b076b
authored
feat(accessibility): add consistent focus indicators for UI elements (#141)
Implements task UI-3.
Adds a consistent, high-visibility 3px focus ring to all interactive elements, including buttons, links, inputs, and accordions.
- Uses the modern `:focus-visible` pseudo-class to apply focus styles only for keyboard navigation, avoiding outlines on mouse clicks.
- Replaces hardcoded colors with Gradio theme variables (e.g., `var(--primary-200)`) to ensure the feature is compatible with theming and dark mode.
- Cleans up a redundant, pre-existing focus style for text inputs that used hardcoded colors.
This change significantly improves keyboard navigation and overall accessibility of the application.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent 9f6f549 commit 07b076b
1 file changed
Lines changed: 30 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
46 | 76 | | |
47 | 77 | | |
48 | 78 | | |
| |||
158 | 188 | | |
159 | 189 | | |
160 | 190 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 191 | | |
170 | 192 | | |
171 | 193 | | |
| |||
0 commit comments