You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8577ed1
Browse filesBrowse the repository at this point in the historyBrowse files
Fix code-line-numbers links having no accessible name (#14662)
* Add aria-label to code line-number anchors (#14655)
Skylighting's numberSource line numbering emits an empty <a> per line,
with the visible number drawn purely via a CSS counter on ::before.
Screen readers and axe-core see a focusable link with no discernible
text (WCAG 2.4.4/4.1.2). aria-hidden isn't an option since these
anchors are real, focusable fragment links, and aria-hidden on a
focusable element is itself an axe violation. Instead, set aria-label
to the visible line number, computed from any counter-reset offset so
custom startFrom values stay correct.
Implemented as a postprocessor pass in htmlFormatPostprocessor, which
revealjs's htmlFormatExtras also inherits, so one pass covers both.
* Add playwright regression coverage for code line-number aria-label (#14655)
Verified against real axe-core 4.10 in a browser: the html fixture (numbered
code, no other violation source) now reports zero axe-core violations, and
the revealjs fixture's report has no violation targeting a code line-number
anchor (only the pre-existing, unrelated slide-menu-button/viewport-meta
violations remain, tracked separately).
Copy file name to clipboardExpand all lines: news/changelog-1.10.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ All changes included in 1.10:
17
17
- ([#14468](https://github.com/quarto-dev/quarto-cli/issues/14468)): The `axe` accessibility report UI (HTML overlay, revealjs report slide, dashboard offcanvas) now uses its own theme-independent colors instead of inheriting from `brand` or theme. Keeps the report readable regardless of page styling, and stops `axe` from clobbering brand colors set via `_brand.yml`.
18
18
- ([#14602](https://github.com/quarto-dev/quarto-cli/pull/14602), [#14632](https://github.com/quarto-dev/quarto-cli/pull/14632)): Fix ORCID profile link having no accessible name for screen readers in HTML, Reveal.js, and ipynb title-block author metadata. (author: @mcanouil for #14602)
19
19
- ([#14604](https://github.com/quarto-dev/quarto-cli/issues/14604)): The `axe` accessibility report UI now shows each violation's WCAG conformance level (e.g. `WCAG 2.0 AA (1.4.3)`) or `Best Practice`, derived from the violation's axe-core tags.
20
+
- ([#14655](https://github.com/quarto-dev/quarto-cli/issues/14655)): Add accessible names to code line-number links so screen readers and accessibility audits no longer report them as empty links.
0 commit comments