Candidates taking an assessment can change how it looks and behaves for themselves: text size, contrast, spacing, a more readable typeface, a colour-blind-safe palette, reduced motion, and turning off keyboard shortcuts or auto-advance. They do not ask anyone, and the employer never sees what they chose. This post is about how that is built so it never flashes.
You can look at what is offered on the accessibility page, and at what a candidate can ask the employer for on the reasonable adjustments page.
Two kinds of setting, kept separate
The distinction that shaped everything: some settings change how the page is painted, and some change how the app behaves.
export const ACCESS_ATTRIBUTES = ['palette', 'contrast', 'text', 'spacing', 'font', 'motion'] as const; Those six become attributes on <html>, like data-access-contrast="high", and CSS does the rest. The other two, shortcuts and auto-advance, are read by the components that care. Attributes can be applied before React exists. Behaviour has to wait for it.
Standard means no attribute
applyAccess removes an attribute when the value is the default, rather than setting data-access-text="standard". A person who never touched the settings gets a page that is byte for byte what it was before the feature. Selectors only ever describe a change, so there is nothing to override.
Applied before the first paint
Reading settings in a useEffect means the page draws once with the defaults, then jumps. For someone who chose larger text, that flash is the product telling them it forgot. So a tiny inline script sits next to the theme script and runs before first paint:
export const ACCESS_SCRIPT = `(function(){ try { var stored = localStorage.getItem(KEY); if (!stored) return; var prefs = JSON.parse(stored); ... for (var key in choices) { var value = prefs && prefs[key]; if (value !== defaults[key] && choices[key].indexOf(value) !== -1) root.setAttribute('data-access-' + key, value); } } catch (e) {} })();`; It is generated from the same CHOICES and DEFAULT_ACCESS constants the app uses, via JSON.stringify, so the script and the app cannot disagree about what a valid value is.
Never trust what you stored
Stored settings go through parseAccess on the way in: unknown keys are dropped, unknown values fall back to the default, and the wrong type for a boolean is ignored. A setting from an older version of the app, a hand-edited value, or garbage in storage cannot break the page. The inline script re-checks each value against the allowed list for the same reason.
Local on purpose
The settings live in the candidate's own browser storage. No request, no approval, nothing sent to the employer. That is a privacy decision as much as an engineering one: what someone needs to read comfortably is not information an employer should be handed. When storage is unavailable, as in private mode or some embedded browsers, writing quietly fails and the setting still applies for the rest of the page.
Change events instead of prop drilling
writeAccess applies the attributes, then dispatches a CustomEvent. Components that need the behavioural settings listen for it. Nothing has to be threaded through a provider tree, and a setting changed in one place updates everything.
Comfortable by default where it is free
Separately from the settings, every button is at least 44px tall on a touch screen, and form errors do not shift the layout. Those are not options. They are just how the components are written, which is how I would prefer most accessibility work to go: the setting is for the person who needs something different, not for the person who needs the basics.
The neurodivergent candidates page explains what the adjustments mean from a candidate's side.