mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
a8b8011548
* improve: enhance accessibility-tester agent based on automated review - Fix pa11y guidance to use --runner axe (default htmlcs runner is WCAG 2.0-era, misses 2.1/2.2 violations) - Note axe-core version requirement (>=4.5) for reliable WCAG 2.2 rule coverage - Annotate which WCAG 2.2 new criteria are actually automatable (only 2.5.8 via axe-core target-size) - Add a fully worked example finding to anchor severity/remediation phrasing - Add document/PDF accessibility checklist item (Section 508/EAA scope) - Add forced-colors / prefers-contrast manual checklist item Automated review cycle | Co-Authored-By: Claude Code <noreply@anthropic.com> * fix: cover prefers-contrast alongside forced-colors in accessibility-tester Addresses review feedback on PR #814 — the manual checklist tested Windows High Contrast (forced-colors) but omitted the distinct prefers-contrast media feature, which interfaces can also use for alternate high-contrast styling. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QTTuf1dEt7QW83eyAPV7Lm * fix: require both forced-colors and prefers-contrast checks explicitly The previous wording used "or", allowing an audit to satisfy the checklist item by testing only one of the two distinct contrast display modes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QTTuf1dEt7QW83eyAPV7Lm * fix: correct pa11y WCAG 2.2 coverage claim and axe-core version check scope pa11y's axe runner maps WCAG2AA to wcag2a/wcag21a/wcag2aa/wcag21aa tags only (confirmed against pa11y/pa11y#666 and lib/runners/axe.js) — it does not include wcag22aa, and pa11y has no --tags CLI flag. Also scope the axe-core version check to the tool actually being run, since @axe-core/cli --version only reports its own bundled axe-core, not pa11y's or @axe-core/playwright's independently-resolved versions. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QTTuf1dEt7QW83eyAPV7Lm * fix: give a concrete command for checking per-tool axe-core versions Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QTTuf1dEt7QW83eyAPV7Lm --------- Co-authored-by: Claude <noreply@anthropic.com>