Skip to content

docs(a11y): state the WCAG criterion and level on every a11y rule page (repo#3095) - #2067

Closed
nc9 wants to merge 1 commit into
mainfrom
boat/a11y-wcag-docs-3095
Closed

nc9 wants to merge 1 commit into
mainfrom
boat/a11y-wcag-docs-3095

Conversation

@nc9

@nc9 nc9 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Adds a WCAG row (criterion and level, WCAG 2.2) to all 62 a11y rule pages; rules with no single failing criterion say so and list the related one. Corrects stale prose: touch-targets meta.solution cited 2.5.5 as the requirement and an 8px spacing claim run() never checks (now 2.5.8 AA, 24px, with 44px as the AAA cutoff the rule flags at); zoom-disabled solution's '500%' claim; identical-links-same-purpose cited 3.2.4 and 2.4.4, now 2.4.9 (AAA). Claims checked against run(), not metadata prose.

Verification: make validate in docs/ passes (62 tests); rules test template-verdict-inputs passes.
Agent skill change: not needed.
Private follow-up: gitlink bump.

@nc9
nc9 marked this pull request as ready for review November 17, 2026 12:01
@nc9

nc9 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #2024: the WCAG criterion and level on every a11y rule page now come from the rule metadata (a generated block on each page, checked by docs/scripts/rule-wcag.ts --check), so hand-written page lines would drift from it. The two things this PR added that the generator does not cover (the zoom-disabled 1.4.4 wording, and related-criteria links for rules with no tested criterion) are filed as #2115. Thank you for the careful mapping.

nik

@nc9 nc9 closed this Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant