Skip to content

fix(report): hide the in-app overlay before scanning, so contrast below the fold is checked (0.15.8) - #32

Merged
DuncanFaulkner merged 1 commit into
mainfrom
fix/report-contrast-full-page
Oct 3, 2026
Merged

DuncanFaulkner merged 1 commit into
mainfrom
fix/report-contrast-full-page

Conversation

@DuncanFaulkner

Copy link
Copy Markdown
Contributor

What

Report mode now hides the in-app overlay ([data-ngb-a11y-overlay]) before axe runs.

Why

When the target app runs the overlay, its tab-order path is drawn on a fixed SVG that overflows the viewport. axe's color-contrast counted it as covering text below the fold and returned incomplete (bgOverlap). Report mode only lists violations, so contrast problems below the 900px-tall report viewport went unreported, in light and dark passes.

Found on the public demo: two dark-mode contrast failures the --dark-attribute pass missed. With this change it reports them.

Tests

  • New E2E page /overlay-below-fold (a shown popover layer with an overflowing SVG and a pill button). Fails without the fix, passes with it.
  • Full suite 315/315, typecheck clean.

Releases as 0.15.8.

🤖 Generated with Claude Code

…ow the fold is checked (0.15.8)

The overlay's tab-order path is a fixed SVG that overflows the viewport.
axe's color-contrast counted it as covering text below the fold and
returned incomplete (bgOverlap), which report mode doesn't list, so
contrast below the first 900px went unreported in light and dark passes.
Report mode now hides [data-ngb-a11y-overlay] before axe runs. New E2E
page reproduces it and fails without the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DuncanFaulkner
DuncanFaulkner merged commit 6e1b59d into main Oct 3, 2026
1 check passed
@DuncanFaulkner
DuncanFaulkner deleted the fix/report-contrast-full-page branch October 3, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant