<< All versions
Skill v1.0.0
currentAutomated scan100/100bedkillerspacex-boop/codex-skill-library/accessibility-a11y-checklist
──Details
PublishedNovember 20, 2026 at 06:40 AM
Content Hashsha256:c33a4a27fe21b4db...
Git SHAeed9fd055798
──Files
Files (1 file, 7.5 KB)
SKILL.md7.5 KBactive
SKILL.md · 187 lines · 7.5 KB
name: accessibility-a11y-checklist description: > Frontend accessibility (a11y) testing checklist at WCAG high level: semantic HTML, keyboard, focus, names/roles, contrast, forms, media, and ARIA discipline. Use when accessibility, a11y, 无障碍, WCAG, screen reader, keyboard navigation, ARIA, focus trap, color contrast, or accessible UI review. Complements code-quality-standards; does not replace product design systems or legal conformance audits. metadata: version: "1.0.0"
Accessibility (a11y) Checklist
Scope And Authorization
- In scope: web/apps your team owns or is hired to improve; staging and local builds preferred.
- Out of scope: claiming legal WCAG conformance without a formal audit process; “fixing” third-party sites at scale without permission.
- Treat user research recordings as sensitive; redact when filing bugs.
- Pair UI code fixes with
code-quality-standardsand relevant frontend skills.
When To Use
- PR review or release checklist for UI features (modals, forms, tables, navigation).
- Fixing axe/Lighthouse accessibility findings.
- Establishing team Definition of Done for keyboard and screen-reader basics.
- Auditing ARIA usage (especially custom widgets).
Do Not Use As Primary
| Need | Skill instead | |
|---|---|---|
| React component structure | react-component-patterns | |
| General state management | state-management-guidelines | |
| i18n / l10n | i18n-l10n-guidelines | |
| Error copy UX writing | error-message-ux-writing | |
| CSP / XSS hardening | ace-editor-csp / XSS skills as relevant | |
| Implementation quality baseline | code-quality-standards |
Domain Focus (WCAG-oriented)
| Area | Target | Common failure | |
|---|---|---|---|
| Semantics | Real <button>, headings hierarchy, lists, landmarks | div click handlers only | |
| Keyboard | All actions reachable; no keyboard traps | Modal focus not trapped/restored | |
| Name / role / value | Accessible name via content, aria-label, or labelledby | Icon-only control with no name | |
| Contrast | Text/UI components meet contrast goals (org standard) | Gray on gray placeholders | |
| Forms | Visible labels, errors tied via aria-describedby | Placeholder-only labels | |
| Media | Captions/transcripts; no autoplay audio surprises | Video without captions | |
| ARIA | First rule: don’t use ARIA if native works | Wrong roles, dual labels | |
| Motion | Respect prefers-reduced-motion | Required parallax only |
Workflow
1. Confirm scope and success criteria
- Record pages/flows, target WCAG level as org policy (often AA), browsers/AT matrix.
- Success: critical user journeys keyboard-complete; axe serious+ empty on scoped pages; SR smoke pass.
- Note design-system components already vetted vs one-off widgets.
2. Automated baseline
bash
# Local or staging URLnpx @axe-core/cli http://localhost:3000 --exitnpx @axe-core/cli http://localhost:3000/settings --tags wcag2a,wcag2aa# Lighthouse CI / CLI (accessibility category)npx lighthouse http://localhost:3000 --only-categories=accessibility --quiet --chrome-flags="--headless"
- File issues with rule id, selector, and impact — do not stop at automation (covers ~30–50% of issues).
- Add unit/RTL tests for accessible names where components are shared:
bash
# Example: Jest/RTL projects often use jest-axenpm test -- --testPathPattern=a11y
3. Keyboard pass (manual, mandatory)
| Check | How | |
|---|---|---|
| Tab order | Logical, matches visual order | |
| Focus visible | Clear focus ring not removed via outline: none without replacement | |
| Activation | Enter/Space on buttons; arrows only when pattern requires | |
| Skip link | Skip to main content works | |
| Modal | Focus moves in; Tab cycles; Esc closes; focus returns | |
| Menus/tabs | Arrow key pattern consistent with APG if custom |
text
# Manual script1. Unplug mouse / ignore pointer2. Traverse primary nav → main task → logout3. Open each dialog/dropdown once
4. Name, role, value and semantics
- Prefer native elements:
<button>,<a href>,<label for>,<nav>,<main>,<table>for tabular data. - Icon-only controls:
aria-labelor visually hidden text. - Images: meaningful
alt; decorativealt=""/ CSS background. - Live updates: polite
aria-liveregions for async errors/toasts (avoid spam). - Custom widgets: follow [ARIA Authoring Practices] patterns; verify roles with accessibility tree (Chrome DevTools → Accessibility).
5. Forms, errors, and status
html
<!-- Good pattern sketch --><label for="email">Email</label><input id="email" type="email" aria-describedby="email-err" aria-invalid="true" /><p id="email-err" role="alert">Enter a valid email.</p>
- Do not rely on color alone for errors.
- Disable submit UX should still explain why (and remain discoverable to AT).
- Autocomplete attributes where appropriate (
autocomplete="username").
6. Visual, media, and motion
- Check contrast for text and essential icons (design tokens / contrast tools).
- Zoom 200%: layout usable without horizontal scrolling traps for main content.
- Captions/transcripts for video/audio content you ship.
- Honor
prefers-reduced-motionfor non-essential animation.
7. Screen reader smoke (sample)
| Platform | AT sample | |
|---|---|---|
| Windows | NVDA + Chrome/Firefox | |
| macOS | VoiceOver + Safari | |
| Mobile | TalkBack / VoiceOver on staging build |
- Navigate by headings and landmarks; confirm form labels spoken; confirm dialog titles.
- Record short notes per journey — not a full legal audit unless commissioned.
8. Hand off
- Bugs with severity (blocker: cannot complete task with keyboard/AT).
- Fix in design system when pattern is reusable.
- Re-run axe on changed routes; keep CI gate for serious violations if team agrees.
Page Review Checklist
- [ ] Title unique and descriptive
- [ ] One
<h1>; heading levels not skipped arbitrarily - [ ] Landmarks: header/nav/main/footer as appropriate
- [ ] All interactive elements focusable and named
- [ ] Focus order matches visual reading order
- [ ] No keyboard trap
- [ ] Forms labeled; errors associated
- [ ] Tables: headers (
th) for data tables - [ ] Contrast meets team standard
- [ ] ARIA used only when needed and correctly
- [ ] Motion/media alternatives considered
- [ ] Automated scan clean of serious+ issues
Good / Bad
| Topic | Good | Bad | |
|---|---|---|---|
| Controls | <button> with text | <div onclick> no role/tabindex | |
| Focus | Visible focus styles | outline: none globally | |
| ARIA | Native first | aria-label duplicating visible text messily + wrong role | |
| Testing | axe + keyboard + SR smoke | Lighthouse score only | |
| Modals | Focus trap + restore | Focus left on background page |
Output Checklist
- [ ] Scope, pages, and target standard recorded
- [ ] Automated axe/Lighthouse (or equivalent) evidence attached
- [ ] Keyboard journey signed off
- [ ] Forms/modals/custom widgets reviewed in accessibility tree
- [ ] Contrast/zoom spot-checked
- [ ] SR smoke notes for critical paths
- [ ] Issues filed with owners; DS vs one-off classified
- [ ] CI regression considered for serious rules
- [ ]
code-quality-standardsapplied to code fixes
Rules
- Aim for usable accessibility, not score-gaming.
- This checklist is engineering hygiene, not a substitute for formal conformance audits where legally required.
- Prefer semantic HTML over ARIA sprawl.
- Do not block releases on theoretical perfection when critical tasks already fail — fix blockers first.
- Keep user recordings and AT notes privacy-safe.