Skip to content
easeweb
Search topics

Multi-selects whose ticks are never read out

A Skills dropdown draws its ticks from a class and never says it takes several choices, so a screen reader can't tell which skills are chosen.

WCAG 2.2
SC 4.1.2A
Required by
Section 508 · EN 301 549 (EU)
Broken <li role="option" class="ticked">Design</li>
The accessibility problem illustrated: No vision:Which skills did I choose?
01

The problem

Screen reader users can't tell which skills are chosen, or hear a choice change, so they can't check the field before sending it

02

Try it

Without the mouse, choose Writing in Skills and untick Design, listening as you go

Tab to Skills, press Enter to open it, and move through the skills with the arrow keys, pressing Space on Writing and on Design. Watch the panel: does it ever say which skills are ticked, or that one changed?

Apply a fix. Try again; in the checkbox fix, Tab moves between the boxes.

Broken Can you fix this?

BrokenTicks that only the eye can see
Skills
Design Research

A recreated demo. The broken version is intentionally inaccessible.

03

The fix

Say in code which options are chosen

Before
BrokenTicks that only the eye can see
<span id="skills-label">Skills</span><div class="skills-field">  <span class="chips">    <span class="chip">      Design      <button type="button" class="chip-remove" data-for="skill-design" aria-label="Remove Design">        <svg viewBox="0 0 16 16" aria-hidden="true">…</svg>      </button>    </span>    <span class="chip">      Research      <button type="button" class="chip-remove" data-for="skill-research" aria-label="Remove Research">        <svg viewBox="0 0 16 16" aria-hidden="true">…</svg>      </button>    </span>  </span>  <button type="button" class="skills-toggle" aria-labelledby="skills-label"    aria-haspopup="listbox" aria-expanded="false" aria-controls="skills-list">    <span class="placeholder">Add a skill</span>    <svg class="chevron" viewBox="0 0 16 16" aria-hidden="true">…</svg>  </button></div><ul id="skills-list" class="skills" role="listbox" tabindex="-1" aria-labelledby="skills-label" hidden>  <li id="skill-design" role="option" class="ticked">Design</li>  <li id="skill-writing" role="option">Writing</li>  <li id="skill-research" role="option" class="ticked">Research</li>  <li id="skill-coding" role="option">Coding</li>  <li id="skill-video" role="option">Video editing</li></ul>
What is wrong3 points

The chevron is a button, the list works from the keyboard, and each chip's × is a named button. Saying what is chosen is where it fails.

  • A screen reader reads every skill alike, so nobody can hear which ones are chosen. The tick is drawn from the ticked class, and no option carries aria-selected.
  • Nothing says the list takes several choices. It has no aria-multiselectable.
  • Choosing or unchoosing with Space is silent. The tick and the chip change on screen, but only a class changes, not a state a screen reader reads.
After

Checkboxes in the dropdown

<span id="skills-label">Skills</span><div class="skills-field">  <span class="chips">    <span class="chip">      Design      <button type="button" class="chip-remove" data-for="skill-design" aria-label="Remove Design">        <svg viewBox="0 0 16 16" aria-hidden="true">…</svg>      </button>    </span>    <span class="chip">      Research      <button type="button" class="chip-remove" data-for="skill-research" aria-label="Remove Research">        <svg viewBox="0 0 16 16" aria-hidden="true">…</svg>      </button>    </span>  </span>  <button type="button" class="skills-toggle" aria-labelledby="skills-label"    aria-expanded="false" aria-controls="skills-list">    <span class="placeholder">Add a skill</span>    <svg class="chevron" viewBox="0 0 16 16" aria-hidden="true">…</svg>  </button></div><div id="skills-list" class="skills" role="group" aria-labelledby="skills-label" hidden>  <label class="skill">    Design    <input type="checkbox" id="skill-design" name="skills" value="design" checked>  </label>  <label class="skill">    Writing    <input type="checkbox" id="skill-writing" name="skills" value="writing">  </label>  <label class="skill">    Research    <input type="checkbox" id="skill-research" name="skills" value="research" checked>  </label>  <label class="skill">    Coding    <input type="checkbox" id="skill-coding" name="skills" value="coding">  </label>  <label class="skill">    Video editing    <input type="checkbox" id="skill-video" name="skills" value="video">  </label></div>
How it is fixed4 steps
  1. Make the list real checkboxes, in a group named by the "Skills" label. The browser makes each one a Tab stop, ticks it with Space, and tells a screen reader its name and whether it is checked: "Writing, checkbox, not checked", then "checked" after Space.
  2. Draw the box and the tick on the checkbox itself, from its own state. The look changes a little: each row in the list shows an empty box until it is ticked.
  3. Open the list from the chevron button and move focus to the first box. Escape closes it and returns focus to the button; moving focus or clicking away closes it too.
  4. Keep the chips' buttons as they are; unticking a box or pressing a chip's × removes the same skill.

The dropdown keeps its look. This fixes the Before and passes 4.1.2.

Why this fix: Use native HTML first

Easily confused
04

Design ideas

Chosen values can look like anything, as long as the code says what is chosen

Three more ways sites draw several choices. Click them, then put the mouse aside and try them with Tab and Space, and with a screen reader if you have one: two pass, and one fills its pills without saying so in code.

In the design file

  • Name the options in the design file as checkboxes, so they are built on the real element.
  • Draw each option chosen and not chosen, and name the chosen look as the checked state, so it is drawn from the checkbox and not from a class.
  • Write the field’s name, such as Skills, above the options, so the group is named by it.

Passes

  • Skill chips that gain a tick Every skill is a pill, and the pill is a checkbox. Off, a #6b7280 edge, 4.83:1; on, a teal edge, the #ccfbf1 tint and a tick before the word in #115e59, 6.73:1 on the tint. No separate chips to remove: Space unticks a pill where it stands.
  • Skills
    2 chosen
    A tick list with a count and Clear all No chips: a line above the checkboxes says how many are chosen, beside a Clear all button. The count sits inside the group, where a screen reader finds it with the list, and every skill is unticked where it is listed, so there is nothing extra to reach.

Fails

  • Pills that fill when chosen, and say nothingWCAG 4.1.2 Each pill is a button, so Tab and Enter work, and a chosen one fills #0f766e with white words, 5.47:1. But the fill comes from a class: a screen reader hears “Writing, button” whether it is chosen or not.
05

Verify the fix

4 checks, no mouse.

Test with: Keyboard, Screen reader, Forced colors

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 the shared multi-select component changes.

How screen readers handle aria-expanded

Limits

This is a starting pattern for a short list of fixed options. It doesn't cover grouped options, options loaded as the person scrolls, or typing to filter the list, which follows autocomplete fields with silent, mouse-only suggestions. Test the complete journey, with your real options, in the browsers and assistive technology you support.

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