--- name: web-accessibility-audit description: Audit web applications for WCAG accessibility compliance. Use when asked to run accessibility checks, identify common violations, and provide remediation guidance. tags: [accessibility, a11y, wcag, testing, auditing] license: MIT --- # Accessibility Auditor Audit web applications for WCAG 2.0/2.1/2.2 compliance by identifying common violations and providing actionable remediation steps. ## When to Use - User requests accessibility audit, a11y check, or WCAG compliance review - User mentions accessibility issues, screen readers, or keyboard navigation problems - User asks to check or improve accessibility for people with disabilities ## WCAG Principles: POUR | Principle | Description | |-----------|-------------| | **P**erceivable | Content can be perceived through different senses | | **O**perable | Interface can be operated by all users | | **U**nderstandable | Content and interface are understandable | | **R**obust | Content works with assistive technologies | ## Conformance Levels | Level | Requirement | Target | |-------|-------------|--------| | **A** | Minimum accessibility | Must pass | | **AA** | Standard compliance | Should pass (legal requirement in many jurisdictions) | | **AAA** | Enhanced accessibility | Nice to have | --- ## 12 Most Common WCAG Violations Based on WebAIM Million (2021) research analyzing top 1M websites: 1. **Low Color Contrast (WCAG 1.4.3)** - 86.4% of sites - Text < 4.5:1 contrast ratio - Large text < 3:1 contrast ratio - UI components < 3:1 2. **Missing/Inadequate Alt Text (WCAG 1.1.1)** - 60.6% of sites - Images without alt attribute - Alt text with "image", "picture", "photo" - Empty alt on meaningful images 3. **Missing Name, Role, or Value (WCAG 4.1.2)** - Interactive elements without accessible names - Custom components without proper ARIA - Buttons, form fields, custom widgets 4. **Keyboard Navigation Failures (WCAG 2.1.1)** - Elements with onClick but not keyboard accessible - Missing focus indicators - Trapped keyboard focus 5. **Unlabeled Form Controls (WCAG 1.3.1, 3.3.2)** - 39.6% of sites - Inputs without `