mirror of
https://github.com/lukaszraczylo/beat-delivery-methodology.git
synced 2026-11-25 11:06:00 +00:00
Adds two dev-only harnesses and reports what they find. No application code is touched. scripts/check-a11y.mjs runs axe-core 4.14 against the built site over every router route and alias, at 360px and 1440px, in the light and dark themes. The theme is set through localStorage['beat-theme'] and asserted on every page before scanning, so a theme that fails to apply aborts the run. scripts/check-a11y-manual.mjs records the manual criteria as assertions: keyboard operability with a visible focus indicator, landmarks, heading order, meaningful link text, alt text, and measured contrast computed from the rendered DOM. axe-core and playwright-core are added as devDependencies. playwright-core is used rather than playwright so no postinstall browser download happens and `npm ci` in the Pages workflow stays clean.