Accessibility (WCAG 2.1 AA)
Category: Quality Attributes · Areas: ui, frontend
Description
Category
accessibility
Areas
ui, frontend
Components
- Standard: WCAG 2.1 Level AA
- Testing: axe-core automated checks + manual screen reader testing
- Scope: All user-facing interfaces
Constraints
- All interactive elements must be keyboard-navigable
- Color contrast must meet AA ratios (4.5:1 text, 3:1 large text)
- All non-decorative images must have alt text
- Form inputs must have associated labels
- Dynamic content must manage focus appropriately
When to use
Any project with user-facing web or mobile interfaces. Required for public-sector, healthcare, finance, and education. Recommended for all consumer-facing products.
ADR References
Practices by activity
Agents working in any of these activities inherit the practices below via the bead’s context digest.
Requirements (Frame activity)
- All user stories involving UI must include a11y acceptance criteria
- WCAG 2.1 AA is the minimum compliance target
- Accessibility is a requirement, not a nice-to-have
Design
- All interactive components must be keyboard-navigable
- Color contrast ratios must meet AA (4.5:1 for text, 3:1 for large text)
- ARIA attributes required for custom components
- Semantic heading hierarchy required (h1 > h2 > h3, no skips)
- Focus order must follow visual reading order
- Touch targets minimum 44x44 CSS pixels
Implementation
- Use semantic HTML elements over divs with roles
- All images require alt text (decorative images use
alt="") - Form inputs require associated
<label>elements - Focus management for modals, drawers, and dynamic content
- Skip navigation link for keyboard users
aria-liveregions for dynamic status updates- No
tabindexvalues greater than 0
Testing
- axe-core in CI for automated a11y checks
- Screen reader testing for critical user flows (VoiceOver, NVDA)
- Keyboard-only navigation testing for all interactive flows
- Color contrast validation in design review
- Test with browser zoom at 200%