Commit 55af258
committed
A11y: Disable axe
Contrast is now checked by `scripts/check-a11y-contrast` (design-time,
~300 ms, deterministic against CSS tokens). Axe stays on for structural
rules — ARIA, focus order, labels, keyboard nav — where a running
browser is genuinely needed.
Rationale: axe's `color-contrast` rule was flaky across engines because
it reads `getComputedStyle().color` and different Chromium/WebKit builds
disagree on how to resolve nested `color-mix(in srgb, var(--x), black
NN%)` chains on translucent overlays. Moving contrast to a static CSS
token analysis eliminates the whole flake class and gives us broader
coverage (every styled element, not just ~22 dialog states).
See `docs/design-system.md` § a11y testing strategy and
`scripts/check-a11y-contrast/README.md` for the full architecture.color-contrast in E2E; contrast moves to design-time1 parent 747507f commit 55af258
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
89 | 94 | | |
90 | | - | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
0 commit comments