Skip to content
easeweb
Search topics

Accessibility settings that need the feature they turn on

No standard requires a high contrast mode or a pause switch, but one a site offers must be reachable without it, not set in faint grey or after the motion.

EN 301 549
Clause 5.2
Broken .tools button { font-size: 12px; color: #767676; }
The accessibility problem illustrated: Low vision:Where do I turn on high contrast?
01

The problem

People who need a setting can't reach the switch that turns it on, because the switch depends on what the setting provides: here, faint type for a contrast mode, and a place after the motion for a pause

02

Try it

Imagine this site is hard for you to use until a setting is on. Find the switch that turns it on

  • Broken 1: you need strong contrast to read. Turn on Low-vision view for a rough idea of blurred sight, and look for High contrast.

  • Broken 2: you can’t read while something moves. Stop the events banner, by eye or with Tab.

  • Apply the fix: both switches come first. With Fix 2, try the device settings under the site too.

Simulate Low-vision view

Broken Can you fix this?

Opening hours

Monday to Friday, 9am to 7pm

Saturday, 10am to 4pm

Sunday, closed

Hours change on public holidays.

Plan your visit

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Make each setting usable before it is turned on

Before

A switch drawn in the look it replaces

<header>  <a href="/" class="logo">Riverside Library</a>  <nav>…</nav>  <div class="tools">    <button type="button" id="contrast" aria-pressed="false">High contrast</button>  </div></header>
What is wrong3 points
  • The High contrast switch is hard to see. It is set in 12-pixel grey with no border, the faintest, smallest text in the header.
  • A reader with a magnifier on the top left of the page never sees it: it is the last thing in the header, after the logo and the navigation.
  • So finding it takes the eyesight the high contrast mode is there to replace.
After

Settings first, usable before they are on

<header>  <div class="tools">    <button type="button" id="contrast" aria-pressed="false">High contrast</button>    <button type="button" id="motion" aria-pressed="false">Pause animations</button>  </div>  <a href="/" class="logo">Riverside Library</a>  <nav>…</nav></header><main>  <div class="events">…</div>  …</main>
How it is fixed3 steps
  1. Put both switches in one group at the start of the header, before the logo and the banner. A magnifier starts there and Tab arrives there first, so the motion can be stopped before it has to be watched.
  2. Draw them the way the high contrast mode draws text: 18 pixels and bold, black on white at 21:1 inside a black border.
  3. Once the mode is on, draw them yellow on black, with a yellow border.

This fixes both Befores: each switch can now be used by someone who needs its setting, before the setting is on, as EN 301 549 5.2 asks.

04

Verify the fix

4 checks, no mouse.

Test with: Zoom, Contrast measurement, Reduced motion, Keyboard

0 of 4 checked

Record the OS, browser and assistive-technology versions, the build, the date, and the actual result of each step. Repeat after any redesign of the header, the settings or the animations.

How screen readers handle aria-pressed

Limits

This guide covers a site's own accessibility settings and the way to turn them on. It doesn't cover the contrast of the site's standard look, which WCAG 1.4.3 covers in low-contrast text on brand colours, photos and hover states, the pause that WCAG 2.2.2 asks for in tickers, carousels and animations that can't be paused, or how the high contrast mode itself must keep focus, icons and selections visible. EN 301 549 5.2 applies only to features a product documents, so a site with no settings has nothing to fail here, but that is no reason to drop a setting that some readers rely on. Test with the people each setting is for, with their own devices and settings.

This is a recreated teaching example, not a finding about a named client. The code is a starting pattern: test it in your own product. No completed assistive-technology test is claimed here.

EaseWeb service

Fixed it? Keep it from coming back.

I turn guides like this one into rules your coding agents follow and checks your CI runs. Then I retest by hand with a keyboard and screen readers, periodically.

See the service