Accessibility

WCAG 2.2 AA on every platform: contrast floors, full keyboard use, visible focus and 44pt targets.

Rules

WCAG 2.2 Level AA is the mandatory baseline on every platform: web, iOS, Android, and the browser extension. We additionally claim a small AAA "stretch" set we already meet; we do not pursue full AAA. Where another section of this document conflicts with a contrast floor here, the floor wins.

Level commitment

  • AA 2.2, required. Aligns with KR (KWCAG 2.2 / 장차법), US (Section 508 / ADA → WCAG AA), and EU (EN 301 549 → 2.1 AA).
  • AAA stretch, only these (already met or near-free): 2.5.5 Target Size 44px (we already mandate 44/48); 2.3.3 animation-from-interaction (reduced-motion respected); 1.4.6 7:1 contrast aspired for primary body text. All other AAA is out of scope.

Perceivable

Contrast floors: these replace the opacity tiers. Text tone is limited to contrast-validated tokens; never lower text below its floor with opacity. The 40–50% muted/caption tier is removed: captions differ by size/weight.

WhatAA floorSource
Body / caption text (< 18.66px bold, < 24px)4.5:11.4.3: text-primary (aim 7:1), text-secondary
Large text (≥ 18.66px bold, ≥ 24px)3:11.4.3
UI components, meaningful icons, sole control/state boundaries, focus ring, graphs that convey meaning3:11.4.11 (non-text)
Purely decorative (a border-subtle separator that isn't the only signal; disabled controls)exempt1.4.3 / 1.4.11

Text on a translucent surface is measured as the composite over the worst ground, in both themes. A panel at 88% lets 12% of whatever is under it through, so its own token is not the ground the text sits on: compose the panel over the darkest and the lightest thing that can show through (black and white when unknown) and measure the text against both results. A token that passes on the panel's own colour can fail the composite, and a fix measured in one theme can leave the other failing.

  • Color is never the only signal (1.4.1). Active/status/error states pair color with icon, text, shape, or weight, never color alone.
  • Meaningful images carry alt text / labels (1.1.1).

Operable

  • Full keyboard (2.1.1 / 2.1.2). Every action reachable and operable by keyboard, no traps. (The "every navigation is a real anchor" rule already serves this on web.)
  • Bypass blocks (2.4.1). Tab's first stop is one link, "Skip to content", visible on focus only, ahead of the consent banner: SkipLink, rendered by RootLayout. Anything focusable and hidden at rest is clipped, never moved off-screen: a moved element shows wherever a safe area is taller than the distance. Pressing it moves keyboard focus into <main>, which it makes focusable itself, so a surface adds nothing. A surface with no <main> hides it, so a surface that repeats a block ahead of its content must mark that content <main>. Landmarks alone would not do: they help a screen reader and leave a sighted keyboard user tabbing the sidebar. Gate: skip-link.test.tsx.
  • Focus visible + unobscured (2.4.7 / 2.4.11 / 2.4.13). Every interactive element shows a focus indicator ≥ 3:1 vs. adjacent colors; never outline: none without a stronger replacement. Sticky chrome (top glass bar, FAB, bottom nav) must not cover the focused element: use scroll-padding / offsets so focus stays on screen.
  • One page, one <h1> (1.3.1 / 2.4.6). A page names itself once.
  • Assistant FAB clearance. Page content ends clear of the Assistant FAB at every width: FAB offset + size-fab + one 1rem gap, with matching scroll-padding, whenever the FAB is shown; 0 when it is not (games, chat). Token: size-fab = min(3.5rem, 64px) (--size-fab), the button's width and height and the size both clearances add, so the room never outgrows the button; its focus indicator is two-tone, a 2px ring with a 2px offset in the page ground, so it reads over a photo or video as over a plain page; the 1rem gap covers that ring and the hover scale, which stay inside the room. One writer per environment, one var: on web GlobalFab alone marks <html data-fab> and positions itself by --fab-bottom; in the apps, where GlobalFab hides, the native shell sets --fab-clearance and scroll-padding-bottom inline from its own FAB on first-party pages, and never sets data-fab (Android FabClearanceScript on every route that shows the FAB, iOS FabClearanceScript for the iPad overlay; the iPhone FAB sits in the tab bar); native lists end by the same room (Android fabClearedPadding); every page end, scroller and bottom overlay reads --fab-clearance (both shells; on web, below sm the cookie banner rises above the FAB and at sm and above it clears the FAB's column, and the FAB never moves for a transient overlay; map controls offset by it). A surface that sits beside the button rather than above it (a side panel's body and footer) clears its column by --fab-inline-clearance, built from --fab-right the same way; --fab-clearance is vertical, and as a right padding it left the Filters footer 64px at 320. A literal offset drifted from the button before. Mid-scroll overlap is inherent to a floating button; only the end of the page and fixed controls must clear. The FAB yields to an Assistant entry in view: while any pixel of an in-page Assistant entry is in the viewport (the www home prompt bar, useFabYieldWhileVisible), the button fades out, leaves the tab order and the tree (inert), and returns when the entry scrolls out, because the entry is the same door and at 320 with 200% text the button covered its send arrow. It never yields while its menu is open, focus is inside it, or an answer is in flight, and its clearance stays reserved so nothing shifts (decideFabYield, L1). Gate: fab-clearance-through-the-var + the global-fab-clearance vitest.
  • Page ground. On www the sidebar is the one writer of a page's ground: it sets AppSidebar's mainSurface, so <main> carries bg-background, or bg-surface for the routes in isSinglePane, and the Assistant FAB clearance (--fab-clearance) is padding inside <main>. A route never paints its own full-height ground; a route that painted one left the page ground showing under the route's own bg-surface, a gray band under a white page in light mode. A route that needs the bg-surface ground joins isSinglePane. A route that is a dashboard only from md up, and one list on a phone, takes surface-on-phone (/calendar): bg-surface until md, bg-background above it, and the status bar follows the phone's ground. The gate does not reach the hub site yet: its shell is a separate writer and hub-about.page.tsx still paints its own ground. Gate: page-ground-one-writer.
  • Consent banner clearance. The first-visit consent banner must not cover an interactive bottom surface. While it shows, CookieConsentBanner alone writes its measured border-box height, FAB padding included, to --consent-clearance on <html> (0 otherwise); a bottom sheet sits above it by that var and drops its own FAB inset by the same amount. A game's root reduces its own height by the var, so the game ends above the banner; a fixed control outside that root offsets its position by the var. Decline and Accept always take the same treatment, so theming never restores an accent on one alone: an accented Accept beside a plain Decline steers the choice. On web the card stops short of the Assistant FAB's column from sm until lg, instead of rising above it; from lg the centered card is already clear of it. No p-* class may override the banner's pb-*. A tap catcher (data-consent-tap-catcher) holds the banner's space for 350ms after an answer: it blocks pointers and nothing else, aria-hidden, no focus, no key handler. Measured, never a literal: the body wraps by locale and width, and the padding grows when the FAB mounts later. By convention a bottom surface marks itself data-bottom-sheet. Gate: the global-fab-clearance vitest.
  • Target size 44pt+ (exceeds AA's 24px 2.5.8; meets AAA 2.5.5).
  • Dragging alternative (2.5.7). Any reorder/drag offers a non-drag path (menu / buttons).
  • Reduced motion: every non-essential animation respects prefers-reduced-motion / Reduce Motion.

Understandable

  • Labels above fields, never placeholder-only (3.3.2); errors inline + specific, not page-level only (3.3.1 / 3.3.3).
  • Accessible Authentication (3.3.8). Login / PIN / OTP fields allow paste + password managers; no transcription, memorization, or puzzle step. Applies to the PIN gate and the extension OAuth sign-in.
  • Predictable navigation + consistent help location (3.2.3 / 3.2.6); no redundant re-entry of known info (3.3.7).

Robust

  • Native components / valid semantic markup; name-role-value exposed (4.1.2). Web: aria-* + roles, status line aria-live. iOS: accessibilityLabel/Traits + Dynamic Type. Android: contentDescription + TalkBack + sp units.
  • A visual separator is not a spoken one (4.1.2, 2.5.3). CSS gap, margin or grid separates nothing for a screen reader, which joins adjacent text nodes; a typed space is the spoken separator. Where a visible space is wrong (ja between kana and a digit), use <span className="sr-only"> </span>. A change to either channel re-reads the other: a character removed for typography re-reads the accessible name, a separator added for speech re-checks the render ("Use points15 offers"). A diff cannot show which channel a space is in, since a gap and a typed space look alike there and only one is heard: judge by the rendered accessible name, never the markup.
  • sr-only goes on a wrapper, never on a <table>. A table grows to its rows whatever height it is given, so a 1px sr-only table stays full height; inside a block that scrolls sideways (every hub widget) it became a vertical scroller and the wheel slid every hub chart up out of its card. Wrap the table in <div className="sr-only">; the table keeps its caption, th scope and row order. Web: api-chart-widget.tsx, canvas-stock-chart.tsx.
  • A live region stays mounted (4.1.3). A role="status" or aria-live element mounted in the same condition as its text is announced unreliably, because the reader has no prior state to compare. The region stays and only its children are conditional: <div role="status">{x && <p>...</p>}</div>. Two same-tag regions in a ternary are one DOM node, so they pass; a region inside a conditional dialog mounts with the dialog and speaks later, so it passes too. Not seen: a component that returns null when it has no message, so the region mounts with its text. A pass is not coverage of that shape.
  • Reflow at 320px (1.4.10, already mobile-first) and text resize to 200% (1.4.4: rem / Dynamic Type / sp; never fixed-px text). Text never scales with the window or the screen. A scale keyed to innerWidth (or vw) is undone by zoom, since zooming narrows the CSS viewport; one keyed to screen.width crowds a small window on a large display, shifts with OS scaling, and moves with zoom in Firefox. No value separates a big screen from a reader who zoomed in, and zoom is the reader's control for exactly that. A stage, a board or a ring may fill the width; the text and controls around it stay 1x.

Per-platform a11y API

ConcernWebiOSAndroid
Labelaria-label / <label>accessibilityLabelcontentDescription
Live regionaria-liveaccessibility announcementliveRegion
Resize / scalerem + browser zoomDynamic Typesp units
Focus:focus-visible ringaccessibility element + traitsdefault focus + traversal
Reduced motionprefers-reduced-motionisReduceMotionEnabledanimator duration scale

A link or control on the page surface takes the brand ring on web: focus-visible:ring-2 focus-visible:ring-yroun-blue with the outline cleared, drawn outside and following the element's radius; ring-inset only where a scroller or overflow-hidden would clip it. Brand blue #155cfb holds 3:1 on both page grounds (5.31:1 on white, 3.34:1 on zinc-900), so the browser's own ring never shows.

A control that may sit on a dark or a light stage (a game lockup, a control over media) takes focus-ring-two-tone on web: a 2px white outline over a 2px dark band, so one ring holds 3:1 on either ground (2.4.11, 1.4.11). It is the game kit's .gk-icon-btn ring as a ui utility; a second hand-rolled ring is a defect. A link that fills a frame with overflow-hidden (every ad) takes focus-ring-two-tone-inset, the same two tones drawn inside the edge on a layer over the content, since an outside ring is clipped there, an inset shadow paints under an image child, and a single brand-blue ring measured under 3:1 on most house-ad gradients.

Per-component pass criteria

What each component owes, and what the rendered probe (canon/accessibility.md → The Standard Every Screen Is Checked Against) reads to show it. A component passes when every row that applies holds on its real ground, in light and dark.

ComponentPasses whenProbe reads
Button, linkthe name holds the visible words and says the outcome; a link names its destination; a control that changes the action may rename itself, one that only reports a result never does (the result is said through the live region)accessibility tree names; focus stays on the control
Icon-only controla dictionary name in the page language; 44 px hit area; icon aria-hiddentree names in every language; hit test
Choice group (sides, setups, filters)a visible group label tied by aria-labelledby; the chosen one by aria-pressed or aria-selected plus a non-colour cuetree shows a named group and its state
Form fielda visible label above, never a placeholder alone; helper and error text on its real ground at 4.5:1; errors said where they occurtree names; computed colour on the ground
List of rowsa real list; each row's link named by the thing; figures labelled in wordslist and item counts in the tree
Dialog, sheetfocus opens on its heading or first control, stays inside, returns to the opener on close; Escape closesfocus path in and out
Live status, toastone mounted region per politeness; said once; a remedy that lives only in a toast does not time outregion text and timing
Auto-moving contentmoves 5 s or less once, or has a visible pause first in its controls; stops on hover, focus and reduced motiontime of the last movement; reduced-motion frame
Board, grid of cellsone Tab stop with arrows, Home and End; cells named by position and content; instructions before the grid or tied by aria-describedbyTab count to the next control; key run
Tabsrole=tablist, tab, aria-selected; arrows move between tabstree roles
Scrolling row (rail)a list in the tree; arrow buttons named in the page language; reachable by keyboardtree; button names per language
Mediacaptions for speech; controls named; no autoplay soundtrack present; tree
Decorative layer (board picture, scrim, art)aria-hidden, and inert when it holds controlszero focusables inside
Hidden but mounted control (a yielded FAB, a collapsed sidebar)inert on its container, written inert={hidden ? true : undefined} on web: Next 16 renders with its own React 19, which keeps true and drops '', whatever React package.json nameshasAttribute('inert') live while hidden; Tab never lands on it
Text in another languagelang on the element that holds it, never on the chrome around itevery text node in another script sits under its lang
Any screenone h1; headings in order; nothing scrolls sideways at 320 px; nothing truncates a name at 200% text; no axe WCAG 2.2 AA violationheading list; overflow; axe

Live specimens

Contrast floorsHierarchy comes from size and weight, never opacity. Each ratio is measured live in this theme.

Every screen has one clear focal point

label-primary · Floor 4.5:1, aim 7:1

Every screen has one clear focal point

label-secondary · Floor 4.5:1

Visible focusPress Tab: each control shows a ring of at least 3:1.
Touch targets44px on every tap target. The checkbox draws 18px but answers across the dashed 44px square.
btn-icon · 44px
w-11 h-11 · 44px