Accessibility
The desk aims at WCAG 2.2 level AA. This page says what is done, how each part is checked, and what is not
yet checked. Most checks are in test/a11y.test.ts, which runs with npm test.
Contrast
Every colour is a token in web/app.css, with one value for the night theme and one for paper. The test reads
the tokens from the stylesheet and computes the WCAG contrast ratio for each pair, so a changed hex value that
breaks a pair fails the build.
| Pair | Required | Where it applies |
|---|---|---|
--text, --muted, --faint, --brass, --pass, --fail, --warn, --info on --ground, --surface, --raised and --sunk | 4.5:1 | all text |
--brass-ink on --brass | 4.5:1 | the label on a primary button |
a chip's colour on its own tinted background (the -soft token laid over --surface or --raised) | 4.5:1 | chips are 11.5px text |
--bench, --div-neg, --pass, --fail, --warn, --brass on --ground and --surface | 3:1 | chart lines, bars and markers (WCAG 1.4.11) |
--bench is a chart colour and is only held to 3:1, so the benchmark's end label on the Terminal chart is drawn
in --muted, which reaches 4.5:1.
The test checks the formula itself against known values (black on white is 21:1; #777 on white is 4.48:1).
Colour is never the only signal
- A state chip draws a shape before its text: a circle for pass, a triangle for warn, a square for fail. Chips that carry an icon use the icon instead. The chip's words say the state too.
- The PAPER and LIVE badge has a square or a round marker and the word.
- The offline badge has a dashed border and says Offline in words, with the age of the figures.
- Status dots (the live connection, a configured channel) always sit next to words that say the same thing.
- The day's change in the top bar carries a sign as well as a colour.
Focus
Every focusable element shows a two-ring focus mark (--focus: the ground colour, then the accent) when it is
reached from the keyboard. Text fields show an accent border and halo whenever they have focus. Controls that
hide their own focus mark move it to their container (the Terminal command line, the Academy's question
box) or to a part of themselves (the slider's thumb in Chrome, Safari and Firefox). A skip link jumps to the
page content, and most screens can be reached with g and a letter (see the guide).
Motion
prefers-reduced-motion: reduce turns off every CSS animation and transition. Scrolling started from script
(jumping to a section in Setup, the Academy and the provider list) asks motion() in web/lib/ui.js, which
answers auto instead of smooth when reduced motion is set. The test fails if a script asks for smooth
scrolling directly.
Screen readers
- Toasts are a polite live region (
role="status"). - The Terminal announces which function it now shows after each command ("Showing Description for ASML"), its answer panel is a polite live region that is marked busy while it works, and a mistyped command is an alert.
- The Record feed is a polite live region.
- The offline badge is a
status, so the change is announced once.
The test checks that these regions are present.
Offline
Offline, the desk says so in words and in the top bar, shows the age of any cached figure, and switches the sign buttons off with a sentence that says why. See the guide.
Not yet checked
- No automated audit runs against the rendered pages (axe or similar): the checks above read the source.
- Screen-reader behaviour has been reasoned about, not tested with VoiceOver, NVDA or TalkBack.
- Chart colours inside
measure.css,insights.cssandterminal.cssthat do not come from the tokens above are not in the contrast test. - Windows high-contrast mode (
forced-colors) has not been reviewed; the chip shapes are drawn incurrentColorand should survive it, but this is not verified.