Repository navigation
Commit ae03c7a
authored
fix(revealjs): name the slide menu button for screen readers (#14251)
The Reveal.js slide menu button is an icon-only link with no accessible
name, so it failed the axe `link-name` rule (WCAG 2.4.4). The
`menu-ready` handler now sets its `aria-label` from a new
`revealjs-menu-button-label` language key ("Slide menu"), so authors can
translate it through `language:`. The label applies to normal decks and to
`delay-init: true` builds.
- Set the button's `aria-label` in `quarto-menu.js`, next to the
`inert` handling from #15011
- Add `revealjs-menu-button-label` to `_language.yml`; the other
translations fall back to English until they add it
- Escape `<` in config values written into the
`Reveal.initialize` script, so a value containing `</script>` cannot
end it early
- Insert that config with a replacer function, so `$&`, `$'` and other
replacement patterns in a value are written literally
Fixes #142491 parent b23fc50 commit ae03c7a
21 files changed
Lines changed: 132 additions & 26 deletions
File tree
- news
- src
- config
- format/reveal
- resources
- editor/tools
- yaml
- language
- schema
- types
- zod
- tests
- docs
- playwright/revealjs
- smoke-all/2026/10/19
- integration/playwright/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| |||
449 | 450 | | |
450 | 451 | | |
451 | 452 | | |
| 453 | + | |
452 | 454 | | |
453 | 455 | | |
454 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
717 | 718 | | |
718 | 719 | | |
719 | 720 | | |
| 721 | + | |
720 | 722 | | |
721 | 723 | | |
722 | 724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
383 | 387 | | |
384 | 388 | | |
385 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
386 | 393 | | |
387 | 394 | | |
388 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
549 | 555 | | |
550 | 556 | | |
551 | 557 | | |
552 | | - | |
553 | | - | |
554 | | - | |
| 558 | + | |
555 | 559 | | |
556 | 560 | | |
557 | 561 | | |
558 | 562 | | |
559 | | - | |
560 | | - | |
561 | | - | |
| 563 | + | |
562 | 564 | | |
563 | 565 | | |
564 | 566 | | |
565 | 567 | | |
| 568 | + | |
| 569 | + | |
566 | 570 | | |
567 | 571 | | |
568 | | - | |
| 572 | + | |
569 | 573 | | |
570 | 574 | | |
571 | 575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10532 | 10532 | | |
10533 | 10533 | | |
10534 | 10534 | | |
| 10535 | + | |
10535 | 10536 | | |
10536 | 10537 | | |
10537 | 10538 | | |
| |||
25826 | 25827 | | |
25827 | 25828 | | |
25828 | 25829 | | |
25829 | | - | |
| 25830 | + | |
25830 | 25831 | | |
25831 | 25832 | | |
25832 | 25833 | | |
25833 | 25834 | | |
25834 | | - | |
| 25835 | + | |
25835 | 25836 | | |
25836 | 25837 | | |
25837 | 25838 | | |
| |||
25847 | 25848 | | |
25848 | 25849 | | |
25849 | 25850 | | |
25850 | | - | |
| 25851 | + | |
25851 | 25852 | | |
25852 | 25853 | | |
25853 | 25854 | | |
| |||
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3500 | 3500 | | |
3501 | 3501 | | |
3502 | 3502 | | |
| 3503 | + | |
3503 | 3504 | | |
3504 | 3505 | | |
3505 | 3506 | | |
| |||
18794 | 18795 | | |
18795 | 18796 | | |
18796 | 18797 | | |
18797 | | - | |
| 18798 | + | |
18798 | 18799 | | |
18799 | 18800 | | |
18800 | 18801 | | |
18801 | 18802 | | |
18802 | | - | |
| 18803 | + | |
18803 | 18804 | | |
18804 | 18805 | | |
18805 | 18806 | | |
| |||
18815 | 18816 | | |
18816 | 18817 | | |
18817 | 18818 | | |
18818 | | - | |
| 18819 | + | |
18819 | 18820 | | |
18820 | 18821 | | |
18821 | 18822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
48 | 60 | | |
49 | 61 | | |
50 | 62 | | |
| |||
65 | 77 | | |
66 | 78 | | |
67 | 79 | | |
| 80 | + | |
68 | 81 | | |
69 | 82 | | |
70 | 83 | | |
| |||
76 | 89 | | |
77 | 90 | | |
78 | 91 | | |
| 92 | + | |
79 | 93 | | |
80 | 94 | | |
81 | 95 | | |
| |||
0 commit comments