Commit 6e9d7e8
a11y(downloads): expose role=progressbar with valuenow/name + status announcements
Closes #2342
- DownloadManager.tsx: replace bare aria-label="NN%" div with proper
role="progressbar" + aria-valuenow / aria-valuemin=0 / aria-valuemax=100.
aria-label now includes the model name e.g. "Downloading Llama-3.1-8B: 42%".
Visual percent span gets aria-hidden="true" to prevent double-reading.
- Added always-present sr-only role="status" aria-live="polite" aria-atomic="true"
live region inside the panel. Announces status transitions (start / complete /
error / cancelled / paused / resumed) -- never fires on every percentage tick.
Clears when the panel closes to prevent stale announcements on reopen.
- Tests A35-A38 added (4 new): role=progressbar present, valuenow/min/max correct,
model name in label, sr-only live region exists.
- ACCESSIBILITY.md updated: #2342 entry, test count 34->38 in table.
Test result: 54 passed, 7 skipped, 0 failed.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 36e3de4 commit 6e9d7e8
3 files changed
Lines changed: 146 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
481 | 488 | | |
482 | 489 | | |
483 | 490 | | |
| |||
510 | 517 | | |
511 | 518 | | |
512 | 519 | | |
513 | | - | |
| 520 | + | |
514 | 521 | | |
515 | 522 | | |
516 | 523 | | |
| |||
523 | 530 | | |
524 | 531 | | |
525 | 532 | | |
| 533 | + | |
526 | 534 | | |
527 | 535 | | |
528 | 536 | | |
529 | 537 | | |
530 | 538 | | |
531 | 539 | | |
532 | 540 | | |
533 | | - | |
| 541 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
74 | 117 | | |
75 | 118 | | |
76 | 119 | | |
| |||
205 | 248 | | |
206 | 249 | | |
207 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
208 | 254 | | |
209 | 255 | | |
210 | 256 | | |
| |||
280 | 326 | | |
281 | 327 | | |
282 | 328 | | |
283 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
284 | 337 | | |
285 | | - | |
| 338 | + | |
286 | 339 | | |
287 | 340 | | |
288 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
652 | 652 | | |
653 | 653 | | |
654 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
0 commit comments