diff --git a/.claude/agents/a11y-reviewer.md b/.claude/agents/a11y-reviewer.md index b5206e1..b5c045c 100644 --- a/.claude/agents/a11y-reviewer.md +++ b/.claude/agents/a11y-reviewer.md @@ -6,6 +6,6 @@ tools: Read, Grep, Glob, Bash You review accessibility and visual consistency. You don't edit files; you report. -Follow the browser checks in the `devtools-verify` skill: run axe on each page (the panel is dark only, so one color scheme), check horizontal overflow at 1280px and 360px, and walk every interactive element with the keyboard (focus visible, arrow keys in trees and lists, `Escape` closes popups and clears search). Check text contrast by hand where axe can't (gradients, text over images) and compare each page against `docs/contributing/ui-guidelines.md`. +Follow the browser checks in the `devtools-verify` skill: run axe on each page in both dark and light color schemes, check horizontal overflow at 1280px and 360px, and walk every interactive element with the keyboard (focus visible, arrow keys in trees and lists, `Escape` closes popups and clears search). Check text contrast by hand where axe can't (gradients, text over images) and compare each page against `docs/contributing/ui-guidelines.md`. Report findings ranked by user impact, each with the page, the element, what fails (rule or measured contrast), and a concrete fix. Say which pages you checked and how. diff --git a/.claude/skills/devtools-verify/SKILL.md b/.claude/skills/devtools-verify/SKILL.md index d71a47b..38e3fd1 100644 --- a/.claude/skills/devtools-verify/SKILL.md +++ b/.claude/skills/devtools-verify/SKILL.md @@ -36,7 +36,7 @@ NO_COLOR=1 pnpm exec ngc -p app/tsconfig.json --noEmit and treat any `error TS` or `error NG` line as a failure. Strip color codes before grepping the output, or errors slip through. -`pnpm test:axe` needs Chromium (`pnpm exec playwright install chromium` once). It runs axe on every panel tab and hub view against a static report of Angular Travel. The panel is dark only, so it runs in the dark color scheme. It does not replace the browser checks below, which use real data from the demos. +`pnpm test:axe` needs Chromium (`pnpm exec playwright install chromium` once). It runs axe on every panel tab and hub view against a static report of Angular Travel in both dark and light color schemes. It does not replace the browser checks below, which use real data from the demos. ## 2. Run the demos @@ -54,7 +54,7 @@ Open the panel through the amber launcher on the page, at `/__devframes/`, and d With Playwright and `@axe-core/playwright` (install them in a scratch folder, not in the repo): -- Every page you touched (the panel is dark only): axe reports no violations, there are no page errors, and `document.documentElement.scrollWidth <= innerWidth` at 1280px and 360px wide. +- Every page you touched in both dark and light color schemes: axe reports no violations, there are no page errors, and `document.documentElement.scrollWidth <= innerWidth` at 1280px and 360px wide. - Hub docks: clicking each rail button shows the matching view and only one frame (the rail selection and the content must match after fast switching and after a reload). - The feature itself, with real data from the demo app (for example `/examples/`). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d11e401..9d986eb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -62,7 +62,7 @@ pnpm skills:check # agent skills and roles pnpm exec ngc -p app/tsconfig.json --noEmit # panel template check ``` -For UI changes, also check the pages in a browser with axe, at a wide and a narrow width (the panel is dark only). The [devtools-verify skill](.claude/skills/devtools-verify/SKILL.md) lists the exact steps. +For UI changes, also check the pages in a browser with axe in both dark and light color schemes, at a wide and a narrow width. The [devtools-verify skill](.claude/skills/devtools-verify/SKILL.md) lists the exact steps. ## Submit a pull request diff --git a/app/index.html b/app/index.html index c9229c7..5b9f4c4 100644 --- a/app/index.html +++ b/app/index.html @@ -3,13 +3,10 @@
- - - + + + +