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 b19d95b
Browse filesBrowse the repository at this point in the historyBrowse files
Axe overlay polish: left-align report and scroll highlighted elements clear of it (#14680)
Three quality-of-life fixes to the `axe: output: document` fixed overlay
in HTML output.
- Left-align the report text. The overlay is appended into `<main>`, so
page-level centering (e.g. `about: template: jolla`) leaked into the
report; the base overlay rule now pins `text-align: left` like the
reveal report slide already does.
- Scroll highlighted elements clear of the overlay. Hovering a selector
scrolled the target with `scrollIntoView({block: "center"})`, which
could land a centered full-width element under the fixed
`bottom/right` overlay. A new exported pure helper,
`overlayAwareScrollTop`, centers the element in the viewport band
above the overlay; elements with no horizontal overlap keep default
centering. Only the plain-HTML fixed overlay takes this path.
- Make the overlay pass its own scan. axe-core flagged
`scrollable-region-focusable` (serious, WCAG 2.1.1) once the report
exceeded `max-height: 50vh` and scrolled. The overlay is now a
focusable labeled region (`tabindex="0"`, `role="region"`,
`aria-label`) in the fixed-overlay path.
Covered by unit tests for the helper geometry, a Playwright hover test,
HTML overlay assertions, and an axe-core self-scan regression test.
Copy file name to clipboardExpand all lines: news/changelog-1.10.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,9 @@ All changes included in 1.10:
21
21
- ([#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.
22
22
- ([#14676](https://github.com/quarto-dev/quarto-cli/pull/14676)): The `axe` accessibility report UI now lists violations most-important-first: by impact (critical first), then WCAG conformance level (A before AA, current criteria before Best Practice and obsolete ones), then rule id. `output: json` still emits axe-core's raw, unsorted result.
23
23
- ([#14677](https://github.com/quarto-dev/quarto-cli/pull/14677)): The `axe` option now uses a copy of axe-core bundled with Quarto instead of loading it from the Skypack CDN in the reader's browser. Accessibility checking now works offline, and viewing a rendered document no longer triggers a request to `cdn.skypack.dev`. The axe-core version is unchanged (4.10.3), so scan results are identical.
24
+
- ([#14680](https://github.com/quarto-dev/quarto-cli/pull/14680)): Fix the `axe` accessibility report overlay inheriting page-level text centering (e.g. from the `jolla` about template) in HTML output; the overlay is now always left-aligned.
25
+
- ([#14680](https://github.com/quarto-dev/quarto-cli/pull/14680)): Fix hovering a selector in the `axe` accessibility report overlay scrolling the highlighted element underneath the overlay; the element now settles in the viewport area above the report.
26
+
- ([#14680](https://github.com/quarto-dev/quarto-cli/pull/14680)): Fix the `axe` accessibility report overlay in HTML output failing axe's own `scrollable-region-focusable` rule: a report long enough to scroll could not be scrolled by keyboard. The overlay is now a focusable, labeled region.
0 commit comments