Menu

Candidate accessibility settings are six attributes on html, applied by an inline script, and the employer never sees them
📰

Candidate accessibility settings are six attributes on html, applied by an inline script, and the employer never sees them

DEV Community: react·Daniel Pertu·about 17 hours ago
#SCONP4yC
#devtoreact#devto#dev#value#settings
Long article (634 words) — no AI summary yet.
Reading 0:00
15s threshold

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 ;

Enter fullscreen mode

Exit fullscreen mode

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.