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
a11y/color-contrast: reports a class-name guess with no measured ratio on a high-contrast element #465
a11y/color-contrast emits a warning from a class-name guess without measuring any contrast ratio. Here class="text-gray-300" on a near-black background defined in an external stylesheet (actual ratio above 12:1) produces "may have low contrast". Measured items carry a ratio (e.g. #999 on #fff (2.85:1)), the guessed ones do not. axe-core reports undeterminable contrast as "incomplete" (needs review), not as a violation.
Repro page
<!doctype html><htmllang="en"><head><metacharset="utf-8"><title>color-contrast repro page</title><metaname="description" content="Minimal repro: light text on a dark background defined in external CSS."><linkrel="stylesheet" href="s.css"></head><body><main><h1>Repro</h1><sectionclass="hero"><pclass="text-gray-300">Gray 300 text on a near-black background (contrast above 12:1)</p></section></main></body></html>
a11y/color-contrast (warn): "1 potential color contrast issue(s)", item p with class "text-gray-300..." may have low contrast (no ratio).
Expected
No finding. Only report an element when a contrast ratio was computed and is below the threshold; an unresolvable colour pair should be skipped or marked as needs-review.
Activity
fix(rules): color-contrast reports only contrast it measured #465