Accessibility (a11y)
Comprehensive accessibility guidelines based on WCAG 2.1 and Lighthouse accessibility audits. Goal: make content usable by everyone, including people with disabilities.WCAG Principles: POUR
Conformance Levels
Perceivable
Text Alternatives (1.1)
- Images
- Complex Images
Visually Hidden Class
Color Contrast (1.4.3, 1.4.6)
Media Alternatives (1.2)
Operable
Keyboard Accessible (2.1)
No Keyboard Traps
Focus Visible (2.4.7)
Skip Links (2.4.1)
Motion (2.3)
Understandable
Page Language (3.1.1)
Consistent Navigation (3.2.3)
Form Labels (3.3.2)
- Explicit Label
- Implicit Label
- With Instructions
Error Handling (3.3.1, 3.3.3)
Robust
Valid HTML (4.1.1)
ARIA Usage (4.1.2)
- ❌ Avoid
- ✅ Native
- When ARIA Needed
Live Regions (4.1.3)
Testing Checklist
Automated Testing
Manual Testing
- Keyboard navigation: Tab through entire page, use Enter/Space to activate
- Screen reader: Test with VoiceOver (Mac), NVDA (Windows), or TalkBack (Android)
- Zoom: Content usable at 200% zoom
- High contrast: Test with Windows High Contrast Mode
- Reduced motion: Test with
prefers-reduced-motion: reduce - Focus order: Logical and follows visual order
Screen Reader Commands
Common Issues by Impact
Critical (Fix Immediately)
- Missing form labels
- Missing image alt text
- Insufficient color contrast
- Keyboard traps
- No focus indicators
Serious (Fix Before Launch)
- Missing page language
- Missing heading structure
- Non-descriptive link text
- Auto-playing media
- Missing skip links
Moderate (Fix Soon)
- Missing ARIA labels on icons
- Inconsistent navigation
- Missing error identification
- Timing without controls
- Missing landmark regions
External Resources
Web Quality Audit
For comprehensive accessibility audits as part of overall web quality