Accessibility Audit (WCAG 2.1)
Target: $1 (or src/components/ if not specified)
Check each component for:
Level A (Must Fix)
- Images missing
altattribute - Form inputs without associated
<label> - Buttons with no accessible text (icon-only buttons need
aria-label) - Links with non-descriptive text ("click here", "read more")
- Missing
langattribute on<html>
Level AA (Should Fix)
- Color contrast ratio < 4.5:1 for normal text (check CSS)
- Focus indicators removed (
outline: nonewithout alternative) - Interactive elements not keyboard-reachable
- Missing
aria-expandedon toggle elements - Modal dialogs not trapping focus
- Missing skip navigation link
Common React Issues
// ❌ No accessible label
<button onClick={onClose}><XIcon /></button>
// ✅ Fixed
<button onClick={onClose} aria-label="Close dialog"><XIcon /></button>
For each issue:
- Severity: Critical (blocks screen readers) / Major / Minor
- File and line
- Fix with code example
Apply fixes after confirmation.