Commit f77684a
authored
feat(a11y): add aria-labels to toolbar icons for screen reader suppor… (#6309)
* feat(a11y): add aria-labels to toolbar icons for screen reader support (#5948)
- Add aria-label to play, stop, fullscreen, new project, open, save,
planet, menu and help toolbar icons in index.html
- Add keydown Enter/Space handlers in toolbar.js for play and stop
- Addresses WCAG 2.1 AA screen reader accessibility requirements
* feat(a11y): add aria-labels to toolbar icons for screen reader support (#5948)
* Fix toolbar tests: add setAttribute mock for aria-label changes
* fix(a11y): wrap aria-label strings in _() for i18n1 parent 4bf55d0 commit f77684a
2 files changed
+30
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | | - | |
| 246 | + | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | | - | |
| 250 | + | |
| 251 | + | |
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
| |||
284 | 287 | | |
285 | 288 | | |
286 | 289 | | |
287 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
288 | 296 | | |
289 | 297 | | |
290 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
470 | 479 | | |
471 | 480 | | |
472 | 481 | | |
| |||
520 | 529 | | |
521 | 530 | | |
522 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
523 | 541 | | |
524 | 542 | | |
525 | 543 | | |
| |||
0 commit comments