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.5Target Size 44px (we already mandate 44/48);2.3.3animation-from-interaction (reduced-motion respected);1.4.67: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.
| What | AA floor | Source |
|---|---|---|
| Body / caption text (< 18.66px bold, < 24px) | 4.5:1 | 1.4.3: text-primary (aim 7:1), text-secondary |
| Large text (≥ 18.66px bold, ≥ 24px) | 3:1 | 1.4.3 |
| UI components, meaningful icons, sole control/state boundaries, focus ring, graphs that convey meaning | 3:1 | 1.4.11 (non-text) |
Purely decorative (a border-subtle separator that isn't the only signal; disabled controls) | exempt | 1.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 byRootLayout. 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: nonewithout 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 matchingscroll-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 2pxringwith 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 webGlobalFabalone marks<html data-fab>and positions itself by--fab-bottom; in the apps, whereGlobalFabhides, the native shell sets--fab-clearanceandscroll-padding-bottominline from its own FAB on first-party pages, and never setsdata-fab(AndroidFabClearanceScripton every route that shows the FAB, iOSFabClearanceScriptfor the iPad overlay; the iPhone FAB sits in the tab bar); native lists end by the same room (AndroidfabClearedPadding); every page end, scroller and bottom overlay reads--fab-clearance(both shells; on web, belowsmthe cookie banner rises above the FAB and atsmand 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-rightthe same way;--fab-clearanceis 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+ theglobal-fab-clearancevitest. - Page ground. On www the sidebar is the one writer of a page's ground: it sets
AppSidebar'smainSurface, so<main>carriesbg-background, orbg-surfacefor the routes inisSinglePane, 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 ownbg-surface, a gray band under a white page in light mode. A route that needs thebg-surfaceground joinsisSinglePane. A route that is a dashboard only frommdup, and one list on a phone, takessurface-on-phone(/calendar):bg-surfaceuntilmd,bg-backgroundabove 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 andhub-about.page.tsxstill 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,
CookieConsentBanneralone writes its measured border-box height, FAB padding included, to--consent-clearanceon<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 fromsmuntillg, instead of rising above it; fromlgthe centered card is already clear of it. Nop-*class may override the banner'spb-*. 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 itselfdata-bottom-sheet. Gate: theglobal-fab-clearancevitest. - Target size 44pt+ (exceeds AA's 24px
2.5.8; meets AAA2.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 linearia-live. iOS:accessibilityLabel/Traits + Dynamic Type. Android:contentDescription+ TalkBack +spunits. - 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-onlygoes 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 scopeand row order. Web:api-chart-widget.tsx,canvas-stock-chart.tsx.- A live region stays mounted (4.1.3). A
role="status"oraria-liveelement 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 toinnerWidth(orvw) is undone by zoom, since zooming narrows the CSS viewport; one keyed toscreen.widthcrowds 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
| Concern | Web | iOS | Android |
|---|---|---|---|
| Label | aria-label / <label> | accessibilityLabel | contentDescription |
| Live region | aria-live | accessibility announcement | liveRegion |
| Resize / scale | rem + browser zoom | Dynamic Type | sp units |
| Focus | :focus-visible ring | accessibility element + traits | default focus + traversal |
| Reduced motion | prefers-reduced-motion | isReduceMotionEnabled | animator 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.
| Component | Passes when | Probe reads |
|---|---|---|
| Button, link | the 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 control | a dictionary name in the page language; 44 px hit area; icon aria-hidden | tree 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 cue | tree shows a named group and its state |
| Form field | a visible label above, never a placeholder alone; helper and error text on its real ground at 4.5:1; errors said where they occur | tree names; computed colour on the ground |
| List of rows | a real list; each row's link named by the thing; figures labelled in words | list and item counts in the tree |
| Dialog, sheet | focus opens on its heading or first control, stays inside, returns to the opener on close; Escape closes | focus path in and out |
| Live status, toast | one mounted region per politeness; said once; a remedy that lives only in a toast does not time out | region text and timing |
| Auto-moving content | moves 5 s or less once, or has a visible pause first in its controls; stops on hover, focus and reduced motion | time of the last movement; reduced-motion frame |
| Board, grid of cells | one Tab stop with arrows, Home and End; cells named by position and content; instructions before the grid or tied by aria-describedby | Tab count to the next control; key run |
| Tabs | role=tablist, tab, aria-selected; arrows move between tabs | tree roles |
| Scrolling row (rail) | a list in the tree; arrow buttons named in the page language; reachable by keyboard | tree; button names per language |
| Media | captions for speech; controls named; no autoplay sound | track present; tree |
| Decorative layer (board picture, scrim, art) | aria-hidden, and inert when it holds controls | zero 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 names | hasAttribute('inert') live while hidden; Tab never lands on it |
| Text in another language | lang on the element that holds it, never on the chrome around it | every text node in another script sits under its lang |
| Any screen | one h1; headings in order; nothing scrolls sideways at 320 px; nothing truncates a name at 200% text; no axe WCAG 2.2 AA violation | heading list; overflow; axe |
Live specimens
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
btn-icon · 44pxw-11 h-11 · 44px