Accessibility as user stories
As a user...
I understand the page purpose and know where I am in that context
- Tab titles are descriptive and unique
- The document has a
langattribute so the screen reader uses the right pronunciation - There is one clear
<h1>that matches the page's purpose - In a single-page app, route changes update the title and announce the new page to assistive tech
- Navigation is consistent — the same elements appear in the same order across pages
- The current page or section is programmatically indicated in navigation, not just styled
- Focus is visible and follows a logical order
- Keyboard navigation is predictable and correct
- Unique context for table cells
I can jump to something quickly
- "Skip to main content" link is the first focusable element
- A single
<main>landmark banner(header),nav,complementary(aside), andcontentinfo(footer) landmarks are present and correctly used- If there are multiple navs or regions, each has a unique accessible name
- Heading hierarchy is logical and sequential (h1 → h2 → h3, no skipped levels)
I can find where I'm going next
- A link is a link and goes somewhere (navigates to a destination)
- A button is a button and does something (triggers an action) — AI-generated interfaces often get this wrong; add a lint rule
- Link text is meaningful on its own — not "Click here" or "Read more" without context
- External links, downloads, and links that open in a new tab are announced as such
- The back button and browser history behave as expected, including after SPA route changes
I can interact with everything
- Every interactive element is reachable and operable by keyboard alone
- Every interactive element has a clear, concise accessible name that describes its action ("Save draft," not "Submit")
- The accessible name matches the visible label so voice-control users can say what they see
- Icon-only buttons have an accessible label
- Custom controls (sliders, date pickers, accordions, menus) behave like their native equivalents
- Form submission works predictably — I know what will happen when I press a button
- Drag-and-drop has a keyboard or single-pointer alternative
- I have enough time to complete a task — session timeouts warn me and let me extend
I can understand what is presented
- Text uses clear, simple language, and terminology is consistent across the site
- Color contrast meets guidelines for normal text and large text
- Information is not conveyed by color alone
- Font sizes are consistent
- Button sizes meet minimum target size
- Content reflows without requiring both horizontal and vertical scrolling
- Screen responds appropriately for zoom settings, up to 200% without loss of content
- Screen layout matches my language defaults (e.g., right-to-left for Arabic)
- Calendar options match my language defaults
- Lists are marked up as lists; tables are marked up as tables with proper headers and captions
I can understand media
- Informative images have alt-text that conveys their purpose, not just their appearance
- Decorative images have empty alt so they are ignored by screen readers
- Complex images (charts, infographics, diagrams) have a longer description nearby or linked
- Text embedded in images is avoided, or the same text is available in the alt or page content
- Video does not autoplay for more than 3 seconds without controls
- Video controls exist (stop, start, change playback speed)
- I can choose to see captions, including language options when available
- Audio descriptions are available for video content that relies on visuals to convey meaning
- No flashing content above the 3-flashes-per-second threshold without a warning — this prevents seizures
I know what information to put in a form
- Every input has a visible, programmatically associated label
- Required fields are clearly identified — not by color or asterisk alone
- Input purpose is set using
autocompleteand appropriate input types (type=email,type=tel, etc.) - Instructions and formatting hints appear before the input, not only after an error
- Related fields are grouped with
<fieldset>and<legend> - I know what will happen when I press Submit — destructive or irreversible actions are confirmed
I know when something changes
- Focus moves appropriately after an action (e.g., modal close, form submit, delete)
- Loading states are communicated (spinners, skeleton screens, progress indicators)
- Status messages are announced to assistive technology without stealing focus — ARIA live regions
- Toast notifications and inline validation results are perceivable by screen readers, not just visually
- Disabled and selected states are communicated, not conveyed by styling alone
I can understand when something has gone wrong and what my options are to resolve it
- Clear, easy-to-understand error messages that answer:
- What is the problem
- What are my options to fix it
- Errors are associated with the relevant input field, not just displayed in a banner at the top of the page
- Focus moves to the error so I know something happened (especially important for screen reader users)
- Suggestions for correction are provided when possible
- I don't lose my work when an error occurs — form data is preserved after a validation failure