Skip to content

a11y rule pages: correct zoom-disabled's 1.4.4 wording; optional related criteria for wcagNone rules #2115

Closed

Description

@nc9

Two things from the superseded pub#2067 that the generated WCAG block on rule pages (pub#2024) does not cover:

  1. a11y/zoom-disabled's solution text (packages/rules/src/a11y/zoom-disabled.ts) says "Users must be able to zoom up to at least 500% (WCAG 1.4.4 requires 200%, but browsers limit to 500%)". That reads as if 500% were a WCAG requirement. WCAG 1.4.4 Resize Text (Level AA) requires text to scale to 200%; the rule flags a maximum-scale below 5 because that is the Lighthouse threshold, not a WCAG one.
  2. Rules that declare wcagNone (no success criterion they test) could still link related criteria for readers, for example accesskeys to 2.1.1 Keyboard, and identical-links-same-purpose to the Understanding page for 2.4.9. The generated block today says only "No WCAG success criterion: ".

The touch-targets text (2.5.5 AAA 44x44 against 2.5.8 AA 24x24) is already on main and needs nothing.

Acceptance Criteria

  • a11y/zoom-disabled's solution and rule page say that WCAG 1.4.4 (Level AA) requires 200% text resize and that the maximum-scale cutoff of 5 is the Lighthouse threshold; no sentence presents 500% as a WCAG requirement.
  • Either the rule metadata gains an optional list of related criteria that the generated rule-page block renders as "Related:" links (marked as related, never as tested), or the issue records the decision not to add them.
  • docs/scripts/rule-wcag.ts --check passes and the generated pages match the metadata.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrulessize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions