--- applyTo: '**' description: 'Comprehensive web accessibility standards based on WCAG 2.2 AA, with 38+ anti-patterns, legal enforcement context (EAA, ADA Title II), WAI-ARIA patterns, and framework-specific fixes for modern web frameworks and libraries.' --- # Accessibility Standards Comprehensive accessibility rules for web application development. Every anti-pattern includes a severity classification, detection method, WCAG 2.2 reference, and corrective code examples. **Severity levels:** - **CRITICAL** — Users cannot access content at all. Must be fixed before merge. - **IMPORTANT** — Significant barrier for assistive technology users. Fix in same sprint. - **SUGGESTION** — Improves usability for assistive technology. Plan for a future iteration. --- ## WCAG 2.2 Quick Reference (AA Level) ### Perceivable | Criterion | Level | Summary | |-----------|-------|---------| | 1.1.1 Non-text Content | A | All non-text content has a text alternative. Decorative images use `alt=""`. | | 1.2.1 Audio/Video-only | A | Provide transcript (audio) or text alternative (video). | | 1.2.2 Captions (Prerecorded) | A | All prerecorded video has synchronized captions. | | 1.3.1 Info and Relationships | A | Structure (headings, lists, tables, labels, landmarks) programmatically conveyed. | | 1.3.2 Meaningful Sequence | A | DOM reading order matches visual order. | | 1.3.3 Sensory Characteristics | A | Instructions don't rely solely on shape, size, position, or sound. | | 1.3.4 Orientation | AA | Content not restricted to single orientation unless essential. | | 1.3.5 Identify Input Purpose | AA | Input fields have `autocomplete` attributes for user data (name, email, tel). | | 1.4.1 Use of Color | A | Color is not the only means of conveying info. | | 1.4.3 Contrast (Minimum) | AA | Text: 4.5:1 normal, 3:1 large (18pt / 14pt bold). | | 1.4.4 Resize Text | AA | Text resizable to 200% without loss of content. | | 1.4.10 Reflow | AA | Content reflows at 320px CSS width (no horizontal scroll). | | 1.4.11 Non-text Contrast | AA | UI components and graphics: 3:1 against adjacent colors. | | 1.4.12 Text Spacing | AA | No loss of content with overridden line-height (1.5x), spacing. | | 1.4.13 Content on Hover/Focus | AA | Tooltips: dismissible, hoverable, persistent. | ### Operable | Criterion | Level | Summary | |-----------|-------|---------| | 2.1.1 Keyboard | A | All functionality operable via keyboard. | | 2.1.2 No Keyboard Trap | A | User can navigate away from any component using keyboard. | | 2.2.1 Timing Adjustable | A | Time limits can be extended or disabled. | | 2.2.2 Pause, Stop, Hide | A | Auto-updating content can be paused. | | 2.3.1 Three Flashes | A | No content flashes more than 3 times per second. | | 2.4.1 Bypass Blocks | A | Skip link to bypass repeated navigation. | | 2.4.2 Page Titled | A | Pages have descriptive `