Skip to content

fix(check): leave layout-flagged occluded text out of the contrast audit - #7727

Open
sx4im wants to merge 1 commit into
heygen-com:mainfrom
sx4im:fix-7711-occluded-text-double-report
Open

sx4im wants to merge 1 commit into
heygen-com:mainfrom
sx4im:fix-7711-occluded-text-double-report

Conversation

@sx4im

@sx4im sx4im commented Nov 14, 2026

Copy link
Copy Markdown

A label hidden under an opaque cover was reported twice: once as text_occluded by the layout audit, and again as a contrast failure measured against the cover itself. The second number describes nothing a viewer sees.

Now the contrast audit skips text the layout audit flagged as occluded at the same sample time. The occluded finding stays, and visible low-contrast text is still audited as before.

Fixes #7711

When the layout audit reports text_occluded for an element, the contrast
audit no longer measures a ratio against the opaque cover hiding it. The
occluded finding already covers the text; the contrast failure was a
duplicate measured against pixels no viewer sees.

Fixes heygen-com#7711

This branch has not been deployed

No deployments
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.

check: text hidden under an opaque cover is reported twice, as text_occluded and as a contrast failure against the cover

1 participant