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.
<li role="option" class="ticked">Design</li> 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
A job board's profile form has a Skills field, drawn as the multi-select dropdown many component libraries ship. One rounded box holds the skills chosen so far, Design and Research, as chips, and a chevron at the end of the box opens a list of skills under it. In the list, the chosen skills carry a tick. With a mouse it all works: click a skill to tick or untick it, and its chip comes and goes.
The keyboard works too. Tab reaches the chevron button, Enter opens the list, the arrow keys move a highlight, and Space ticks or unticks the highlighted skill. But a screen reader user hears "Skills, list box" and then each skill as the highlight moves, "Design", "Writing", and nothing says that Design and Research are the ticked ones. A browser may even report whichever skill is highlighted as selected, as Chromium does, because the list doesn't say it takes several choices and no option says it is chosen. Pressing Space on Writing adds a tick and a chip on screen and says nothing at all.
Success Criterion 4.1.2 asks that a control's state, when the user can set it, is available to assistive technology. Whether a skill is chosen is such a state. Here the tick is drawn by CSS from a class, the options carry no aria-selected, and the list carries no aria-multiselectable. The browser builds what a screen reader reads from the markup, and a class means nothing to it, so it has no chosen state to pass on and no sign that the list takes several choices. W3C documents this as failure F15: a custom control that uses the accessibility API incompletely, here with roles but no state.
Multi-selects often hold what a profile, a filter or a post is about: skills, interests, tags, recipients. Choices that can't be checked go out with the form as they are.
1 of 10 groups affected
- No vision (affected)
- Low vision (not affected)
- Colour vision (not affected)
- No hearing (not affected)
- Hard of hearing (not affected)
- No speech (not affected)
- Motor (not affected)
- Reach, strength (not affected)
- Cognitive (not affected)
- Seizures (not affected)
- Without vision Screen reader users hear each skill's name and nothing about its tick, so they can't tell which skills are chosen, and a press of Space changes the field without a word.
To a generic scan, the field looks sound. The chevron is a named button, and the listbox and its options have valid roles, so nothing a rule knows of is wrong. A scan doesn't see that a class draws a tick. EaseWeb's audit reports options in a listbox drawn as chosen by a class with no aria-selected (ew:option-selection-not-exposed), and raises a listbox with two or more options marked aria-selected="true" but no aria-multiselectable as a lead for review (ew:multiselect-manual-check). AI coding assistants asked for "a multi-select dropdown" can draw the ticks from a selected class and leave the state out of the markup. Only listening shows whether the choices are read.
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?
- Design
- Writing
- Research
- Coding
- Video editing
The fix
Say in code which options are chosen
<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
tickedclass, and no option carriesaria-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.
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
- 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.
- 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.
- 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.
- 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
All three pass 4.1.2. Use checkboxes: every browser and screen reader knows them, the browser gives each one its state, its keys and its touch behaviour with no script, and they keep the tick-list look. That is the reason to recommend them for nearly every multi-select. Keep the ARIA listbox when the list is long enough that one Tab stop for it matters, or a component already builds it, and accept that its keys and states are yours to test and maintain. Use the native select with multiple only for a short list, for people who already know its keys, such as on an admin screen, where an open list instead of a dropdown is fine, and write how to choose several beside it.
Draw the ticks with borders or an SVG in currentColor, not with a background fill, so they stay in a Windows contrast theme, and give the highlighted option an outline as well as its background. Don't draw the tick as CSS text such as content: "✓" either: generated text is read as part of the option's name.
Component libraries vary: some leave out aria-selected on unchosen options, some draw the tick from a class of their own, and some remove chosen options from the list, leaving the chips as the only place a choice shows. Check what they render, not their documentation. A chip's × has to be a button Tab reaches, as it is here; when it is an svg or span, that is covered in tag chips whose × the keyboard never reaches. A dropdown that holds only one value is covered in custom dropdowns that keyboards and screen readers can't use, and a select-all checkbox that shows a dash when some of the options are chosen in select-all checkboxes whose dash is never read out.
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.
- 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.
Verify the fix
4 checks, no mouse.
Test with: Keyboard, Screen reader, Forced colors
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.