# Accessibility

Enterprise baseline for Life: **WCAG 2.2 Level AA**, with **AAA (7:1)** for body text on primary surfaces where the palette already allows it. Section 508 (Revised) and **EN 301 549 v3.2.1** mapping live in `a11y/standards-mapping.md`. VPAT skeleton: `a11y/vpat-checklist.md`.

## Scope

- **In scope:** Desktop and web UI, VS Code webviews, design-system previews (self-hosted, air-gapped).
- **Terminal output:** Follows text-equivalent rules (glyph + word for status; no colour-only meaning).
- **Mobile / touch:** Deferred; specs do not require touch targets beyond documented minimums for future work.

## Conformance targets

| Area | Target |
| --- | --- |
| Text | 4.5:1 normal, 3:1 large (AA); strive 7:1 for `text.primary` / `text.secondary` on primary surfaces |
| Non-text UI | 3:1 for borders, focus ring vs adjacent fill (WCAG 1.4.11) |
| Focus | 2.4.11 Focus Not Obscured (Minimum); appearance toward 2.4.13 (AAA target via `--sv-focus-ring-*`) |
| Motion | 2.3.3; reduced motion in CSS and `[data-motion="reduced"]` |
| Keyboard | 2.1.1, 2.1.2, 2.1.4 — see `KEYBOARD.md` |
| Authentication | 3.3.8 Accessible Authentication (paste and password managers allowed) |

## WCAG 2.2 criteria (selected)

| Criterion | How the system meets it |
| --- | --- |
| 2.4.11 Focus Not Obscured (Minimum) | Sticky chrome leaves focus ring visible; modals scroll focused control into view |
| 2.4.13 Focus Appearance (AAA target) | 2px solid neutral `--sv-focus-ring-color` (`border.focus`, greyscale only — not accent), 2px offset; forced-colors uses Highlight |
| 2.5.7 Dragging Movements | No essential drag-only actions; reorder uses keyboard alternatives where specified |
| 2.5.8 Target Size (Minimum) | 24×24 CSS px target; audit notes: 20px tags, 12–16px icon-only buttons get padding to 24px hit box in implementation |
| 3.2.6 Consistent Help | Help entry in app shell settings (product); design system documents `?` shortcut map |
| 3.3.7 Redundant Entry | Forms reuse session/org context; Autocomplete where supported |
| 3.3.8 Accessible Authentication | AuthScreen allows paste; no cognitive test |

## Colour and contrast

Semantic pairs are checked in CI (`tests/contrast.test.mjs`, `tests/a11y-contrast.test.mjs`). Decorative tokens (`text.suggestion`, chart fills) are not used for essential text.

**High contrast plan (follow-up):** A resolver modifier `contrast: high` will override borders and tertiary text for stronger separation — sketched in [`changes/archive/p1.md`](../../changes/archive/p1.md); track shipping work in [CHANGELOG.md](../ops/CHANGELOG.md), not hand-edited token files.

## Reduced motion and transparency

- **Motion:** `prefers-reduced-motion` and `[data-motion="reduced"]` — see `MOTION.md`.
- **Transparency:** Status and overlays keep text on opaque or flattened surfaces in contrast tests (`flatten` helper).

## Forced colors and high contrast OS

`bundle.css` `@media (forced-colors: active)` maps focus to Highlight, borders to CanvasText, selection to Highlight/HighlightText, disabled to GrayText, icons to `currentColor`. State uses shape and text, not hue alone. `forced-color-adjust: none` only on colour swatches (AccentPicker, chart legend chips).

`@media (prefers-contrast: more)` nudges `border.default` and `text.tertiary` using existing semantic vars.

## Screen reader testing matrix

| AT | Browser |
| --- | --- |
| NVDA | Firefox, Chrome |
| JAWS | Chrome |
| VoiceOver | Safari |
| Narrator | Edge |

Test: landmarks, dialog titles, list/tree expand, live regions (toast, sandbox status), data tables.

## Component and keyboard specs

See [Keyboard and focus](KEYBOARD.md) and [Patterns](patterns.md) for shared interaction guidance.

## Reporting an issue

Product teams file accessibility bugs with: component name, theme, steps, expected AT announcement, screenshot or recording, and contrast ratio if colour-related. Design-system gaps go in a branch note ([`changes/<branch>.md`](../../changes/) per [branch-notes.md](../ops/branch-notes.md)) or the product issue tracker.
