Accessibility
Note for AI agents: This page is baseline guidance, not an exact prescription. Read it, tell your owner what applies to their project, and get their approval before you change anything. Your project's own rules take precedence. If something important for this project is missing here, suggest it to your owner.
For agents
- Accessibility applies from class S. The target is WCAG 2.2 level AA.
- Check by hand: tab through every screen, zoom to 200%, try reduced motion, use a screen reader once.
- From class L add an automated accessibility check in CI and a manual screen reader pass.
Which class?
This topic has items from class S. The blocks below are cumulative: read up to your own class.
- S: 6 items
- M: 0 items
- L: 1 items
- XL: 0 items
Audit checklist
Every project
- WCAG 2.2 AA is the written target
- What: The project states WCAG 2.2 level AA as its goal and tracks known gaps.
- How to check: Find the statement and the issue list.
- Evidence: Document with gaps.
- Everything works with the keyboard and shows focus
- What: All functions are reachable by keyboard in a logical order; focus is visible; no keyboard trap.
- How to check: Tab through the screens without a mouse.
- Evidence: Test notes.
- Controls have names and images have alternatives
- What: Buttons, fields and links have accessible names; meaningful images have alternative text; decorative ones are hidden from assistive technology.
- How to check: Run an automated scan and read the accessibility tree for key screens.
- Evidence: Scan report.
- Contrast and touch targets are sufficient
- What: Text and controls meet the contrast ratios of WCAG 2.2 AA in both themes; touch targets are large enough.
- How to check: Check colors with a contrast tool in light and dark themes.
- Evidence: Contrast table.
- Reduced motion and zoom are respected
- What: Animation stops or shrinks when the user prefers reduced motion; the layout works at 200% zoom.
- How to check: Turn on the reduced-motion setting and zoom the page.
- Evidence: Screenshots.
- Works at phone width
- What: Pages and screens are usable at 360 px width without sideways scrolling.
- How to check: Open the product at 360 px width (browser device mode or a real phone) and walk through the main pages.
- Evidence: Screenshots at phone width for the main pages.
+ If it has users, personal data or API keys (M)
No additional items for this class.
+ If it has an admin panel, file uploads, many users or a store app (L)
- An accessibility guard and manual screen reader check exist (L+)
- What: Automated accessibility checks run in CI, and someone has used a screen reader on the main flows.
- How to check: Read the CI scan and find the manual test notes.
- Evidence: CI step; notes.
+ If it targets millions of users (XL)
No additional items for this class.
Common mistakes
- Removing the focus outline.
- Text on a background with low contrast in one of the two themes.
- Icons-only buttons with no accessible name.
- Information conveyed only by color.
- Touch targets too small on phones.
- Animations that ignore the reduced-motion setting.
- Skipping heading levels for visual size.
- Testing only with a mouse.
Sources
- Web Content Accessibility Guidelines (WCAG) 2.2 — W3C
- WCAG 2 Overview — W3C WAI
- How to Meet WCAG (Quick Reference) — W3C WAI
- Evaluating Web Accessibility Overview — W3C WAI
- Accessibility — MDN Web Docs
- prefers-reduced-motion — MDN Web Docs
- prefers-color-scheme — MDN Web Docs
- Learn Accessibility — web.dev (Google)
- Implement dark theme — Android Developers
- Human Interface Guidelines — Apple Developer
- Pro Build Guide v1.2: compiled team practices — Pro Build Guide