Audit Accessibility
Systematically test a product against WCAG 2.1 AA to find and prioritize accessibility barriers before they reach users with disabilities.
Why This Is Best Practice
Adopted by: UK Government Digital Service (mandatory WCAG 2.1 AA), US Section 508, EU EN 301 549, and all major tech companies under legal obligation or voluntary commitment
Impact: WebAIM Million report (2024) found 95.9% of top 1M homepages had detectable WCAG failures; automated tools catch ~30–40% of issues — manual and assistive technology testing is required for full coverage
Why best: Accessibility is a legal requirement in most jurisdictions and expands the addressable market by ~1.3 billion people globally with disabilities. Retrofitting accessibility after launch costs 3–5× more than building it in.
Steps
- Run automated scanning — Use axe-core (browser extension or CI integration) on every page/view. Deque Axe DevTools or Lighthouse accessibility audit catch structural violations: missing alt text, insufficient color contrast, unlabeled form fields, missing landmark roles.
- Audit color contrast — Check all text against WCAG 2.1 AA: normal text ≥ 4.5:1 ratio, large text (≥18pt or 14pt bold) ≥ 3:1. Use the Colour Contrast Analyser or browser DevTools.
- Test keyboard navigation — Tab through the entire interface using only a keyboard. Verify: visible focus indicator on all interactive elements, logical tab order, no keyboard traps, all interactive elements reachable.
- Test with a screen reader — Use NVDA+Chrome (Windows) or VoiceOver+Safari (macOS/iOS). Test: page title announced correctly, headings navigable in sequence, form labels associated, dynamic content announced (live regions), modal focus management.
- Audit heading structure — Every page should have one
<h1>. Headings must not skip levels (h1→h3 with no h2 is a violation). Use the browser's accessibility tree or a heading visualizer extension.
- Check images and media — All informative images need descriptive
alt text. Decorative images need alt="". Videos need captions; audio needs transcripts.
- Audit interactive components — For each custom widget (modal, dropdown, date picker, slider): verify ARIA roles, states, and properties match WAI-ARIA Authoring Practices patterns. Keyboard interactions must match the expected pattern.
- Document findings in a severity matrix — Rate each issue: Critical (blocks access), Serious (significantly limits access), Moderate (inconvenient), Minor (cosmetic). Fix critical and serious before launch.
Rules
- Automated tools alone are never sufficient — manual screen reader testing is mandatory for any shipped product.
- Color must not be the only means of conveying information (e.g., red = error must also have a text label or icon).
- All interactive elements must have a programmatically determinable name — not just a visible label.
- Focus must never be trapped except in modals, and modals must return focus to the trigger element when closed.
- Audit with real assistive technology users at least once per major release cycle.
Examples
A modal audit reveals the close button has aria-label="close" but pressing Escape does not close the modal and focus does not return to the trigger. Fix: add keydown Escape handler and restore focus on close. This matches the WAI-ARIA Dialog pattern exactly.
Common Mistakes
- Audit = run Lighthouse — Lighthouse catches ~30% of WCAG violations; teams that stop there ship inaccessible products confidently.
- ARIA without semantics — Adding
role="button" to a <div> without also adding tabindex="0" and keyboard handlers creates the appearance of accessibility without the reality.
- Fixing automation findings only — Critical barriers like incorrect screen reader announcements for dynamic content are invisible to automated tools.
When NOT to Use
- Do not substitute a WCAG 2.1 AA audit for a higher standard when the product serves users with cognitive disabilities or when the organization has committed to WCAG 2.2 or AAA — a passing AA audit does not guarantee the product is usable by all disability groups.
- Do not run an accessibility audit as a one-time pre-launch gate rather than a recurring practice — new components, content updates, and third-party script changes introduce violations continuously, so a single audit provides only a point-in-time snapshot.
- Do not treat an audit as complete if no real assistive technology users were involved in testing — automated tools and developer screen reader checks consistently miss interaction patterns that diverge from how actual users navigate with specialized hardware or custom AT configurations.
1---2name: audit-accessibility3description: Use when auditing a product or component for accessibility compliance or when preparing for WCAG 2.1 AA certification4source: W3C WCAG 2.1 (2018); WAI-ARIA Authoring Practices 1.2; Deque axe-core open-source ruleset5tags: [accessibility, wcag, a11y, screen-reader, aria, inclusive-design, audit]6verified: true7metadata:8 source: https://skillmd.com/skills/jeffreytse/audit-accessibility9---1011# Audit Accessibility1213Systematically test a product against WCAG 2.1 AA to find and prioritize accessibility barriers before they reach users with disabilities.1415## Why This Is Best Practice1617**Adopted by:** UK Government Digital Service (mandatory WCAG 2.1 AA), US Section 508, EU EN 301 549, and all major tech companies under legal obligation or voluntary commitment18**Impact:** WebAIM Million report (2024) found 95.9% of top 1M homepages had detectable WCAG failures; automated tools catch ~30–40% of issues — manual and assistive technology testing is required for full coverage1920**Why best:** Accessibility is a legal requirement in most jurisdictions and expands the addressable market by ~1.3 billion people globally with disabilities. Retrofitting accessibility after launch costs 3–5× more than building it in.2122## Steps23241. **Run automated scanning** — Use axe-core (browser extension or CI integration) on every page/view. Deque Axe DevTools or Lighthouse accessibility audit catch structural violations: missing alt text, insufficient color contrast, unlabeled form fields, missing landmark roles.252. **Audit color contrast** — Check all text against WCAG 2.1 AA: normal text ≥ 4.5:1 ratio, large text (≥18pt or 14pt bold) ≥ 3:1. Use the Colour Contrast Analyser or browser DevTools.263. **Test keyboard navigation** — Tab through the entire interface using only a keyboard. Verify: visible focus indicator on all interactive elements, logical tab order, no keyboard traps, all interactive elements reachable.274. **Test with a screen reader** — Use NVDA+Chrome (Windows) or VoiceOver+Safari (macOS/iOS). Test: page title announced correctly, headings navigable in sequence, form labels associated, dynamic content announced (live regions), modal focus management.285. **Audit heading structure** — Every page should have one `<h1>`. Headings must not skip levels (h1→h3 with no h2 is a violation). Use the browser's accessibility tree or a heading visualizer extension.296. **Check images and media** — All informative images need descriptive `alt` text. Decorative images need `alt=""`. Videos need captions; audio needs transcripts.307. **Audit interactive components** — For each custom widget (modal, dropdown, date picker, slider): verify ARIA roles, states, and properties match WAI-ARIA Authoring Practices patterns. Keyboard interactions must match the expected pattern.318. **Document findings in a severity matrix** — Rate each issue: Critical (blocks access), Serious (significantly limits access), Moderate (inconvenient), Minor (cosmetic). Fix critical and serious before launch.3233## Rules3435- Automated tools alone are never sufficient — manual screen reader testing is mandatory for any shipped product.36- Color must not be the only means of conveying information (e.g., red = error must also have a text label or icon).37- All interactive elements must have a programmatically determinable name — not just a visible label.38- Focus must never be trapped except in modals, and modals must return focus to the trigger element when closed.39- Audit with real assistive technology users at least once per major release cycle.4041## Examples4243A modal audit reveals the close button has `aria-label="close"` but pressing Escape does not close the modal and focus does not return to the trigger. Fix: add `keydown` Escape handler and restore focus on close. This matches the WAI-ARIA Dialog pattern exactly.4445## Common Mistakes4647- **Audit = run Lighthouse** — Lighthouse catches ~30% of WCAG violations; teams that stop there ship inaccessible products confidently.48- **ARIA without semantics** — Adding `role="button"` to a `<div>` without also adding `tabindex="0"` and keyboard handlers creates the appearance of accessibility without the reality.49- **Fixing automation findings only** — Critical barriers like incorrect screen reader announcements for dynamic content are invisible to automated tools.5051## When NOT to Use5253- Do not substitute a WCAG 2.1 AA audit for a higher standard when the product serves users with cognitive disabilities or when the organization has committed to WCAG 2.2 or AAA — a passing AA audit does not guarantee the product is usable by all disability groups.54- Do not run an accessibility audit as a one-time pre-launch gate rather than a recurring practice — new components, content updates, and third-party script changes introduce violations continuously, so a single audit provides only a point-in-time snapshot.55- Do not treat an audit as complete if no real assistive technology users were involved in testing — automated tools and developer screen reader checks consistently miss interaction patterns that diverge from how actual users navigate with specialized hardware or custom AT configurations.