Commit 5913802
committed
Fix accessibility issues in SelectInputSettingsPanel radio buttons
- Replace non-semantic div with role='radio' with semantic <label> elements
- Remove manual role, tabIndex, aria-checked attributes from wrapper
- Remove manual keyboard handlers (Enter/Space) - native radio behavior
- Associate labels with radio inputs for proper click handling
- Remove stopPropagation calls - no longer needed with semantic structure
- Radio inputs now work natively for screen readers and keyboard users
- Maintains existing visual styling via .radio-option CSS class1 parent c090db7 commit 5913802
File tree
1 file changed
+6
-41
lines changed- src/webviews/webview-side/selectInputSettings
1 file changed
+6
-41
lines changedLines changed: 6 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
| 136 | + | |
149 | 137 | | |
150 | 138 | | |
151 | 139 | | |
| |||
166 | 154 | | |
167 | 155 | | |
168 | 156 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 157 | + | |
173 | 158 | | |
174 | 159 | | |
175 | 160 | | |
| |||
189 | 174 | | |
190 | 175 | | |
191 | 176 | | |
192 | | - | |
193 | 177 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 178 | + | |
201 | 179 | | |
202 | 180 | | |
203 | 181 | | |
204 | 182 | | |
205 | 183 | | |
206 | 184 | | |
207 | | - | |
| 185 | + | |
208 | 186 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
| 187 | + | |
222 | 188 | | |
223 | 189 | | |
224 | 190 | | |
| |||
242 | 208 | | |
243 | 209 | | |
244 | 210 | | |
245 | | - | |
246 | 211 | | |
247 | 212 | | |
248 | 213 | | |
249 | | - | |
| 214 | + | |
250 | 215 | | |
251 | 216 | | |
252 | 217 | | |
| |||
0 commit comments