Skip to content

Guidelines · Accessibility

WCAG 2.2, specific, not decorative

WCAG 2.2 is the Web Content Accessibility Guidelines, version 2.2: the public rulebook for making websites usable by people with disabilities. Each rule has a number. These are six of them, and all six are shipped: each one says how it is checked, so you can check it yourself.

2.4.11

Focus not obscured

Shipped

The top navigation bar stays pinned to the top of the screen as you scroll. The page reserves room for it with `html { scroll-padding-top }`, so when you move through the page with the keyboard, the item you've landed on never ends up hidden under the bar.

2.4.13

Focus appearance

Shipped

The focus ring is the outline that shows which item the keyboard is on. Its color comes from the focus.ring token (a named design value), and it stands out from the background by a contrast ratio of at least 3:1 in both themes: 4.11:1 in light and 6.26:1 in dark, measured by the contrast gate, the automated check that tests color pairs. It's at least 2px (pixels) thick and is drawn outside any clip-path shape (the CSS that cuts a component's corners), never inside it. The Shape page has the live demo and explains how it works.

2.5.8

Target size

Shipped

Everything you can click or tap, in the site's frame and in every guideline demo, is at least 36 pixels tall (min-h-[36px]). Icon-only controls are also at least 36 pixels wide (min-w-[36px]). The rule asks for 24 pixels, so there's room to spare.

2.5.7

Dragging movements

Shipped

Two components can be dragged, and both work without dragging. KanbanBoard: every card has a Move menu that sends it to another column, and Space lifts a card so the arrow keys can carry it. Slider: click or tap anywhere on the track and the thumb jumps there, or use the arrow keys. The Move menu is covered by browser tests in both themes.

3.3.7

Redundant entry

Shipped

CheckoutForm keeps everything you typed in one place for the whole flow, so going Back never loses an answer, and the billing address starts as "same as shipping" instead of asking for it again. AuthForm keeps your email when you switch between signing in and creating an account. Unit tests check both.

3.3.8

Accessible authentication

Shipped

AuthForm never blocks pasting (a unit test pastes into every field), tells password managers what each field is with autocomplete, and accepts a one-time code pasted with a space in it. There is no CAPTCHA or puzzle, and its docs tell you not to add one.