Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Custom dropdown not usable by screen readers: how to fix it

PRF-345Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A custom select (or dropdown) is a menu you build yourself with HTML, CSS and JavaScript instead of the browser's built-in <select>. Designers like them because they can be styled freely. The problem is that a pile of <div> elements tells assistive technology nothing.

A screen reader is software that reads a page aloud and lets people navigate by keyboard. For it to work with a dropdown, the control needs a role (what it is), a name (what it is for), a state (open or closed, selected option) and keyboard support (Tab, arrow keys, Enter, Escape). Custom dropdowns often have none of these.

Why it costs you leads or sales

Dropdowns often hold required answers: country, service type, shipping method, size, appointment time. If someone can't operate them, they can't submit the form or finish checkout. They leave, and you never see it as an error because nothing breaks for sighted mouse users.

Where a screen reader user drops out
  1. Landing pagePage reads fine
  2. Open formFields reachable by Tab
  3. Custom dropdownAnnounced as 'group' or nothing; arrow keys do nothing
  4. Submit formRequired value missing
  5. Lead in CRMNever arrives

The journey stops at the custom dropdown, so every later step is lost.

Form completion by input methodExample numbers
Form completion by input method (example)Mouse users: 62 %; Keyboard only: 18 %; Screen reader: 9 %0244862189Mouse usersKeyboard onlyScreen reader%

Example: illustrative numbers only. A required custom dropdown can block most keyboard and screen reader attempts.

How to check if your site has it

Test your dropdown in five minutes
  1. Inspect the markup

    Right-click the dropdown, choose Inspect. If you see <div> or <span> elements and no <select>, role="combobox" or role="listbox", it is probably inaccessible.

  2. Try the keyboard only

    Press Tab to reach the control. Press Enter or Space to open it, arrow keys to move, Enter to choose, Escape to close. Every step must work and focus must stay visible.

  3. Turn on a screen reader

    Use NVDA (Windows, free), VoiceOver (Mac and iPhone, built in) or TalkBack (Android). Tab to the control. It should announce a name, a role such as 'combobox' or 'collapsed', and the current value.

  4. Check the accessibility tree

    In Chrome DevTools, open Elements, then the Accessibility pane. Confirm the control has a role, a name and an expanded state.

  5. Run an automated accessibility scanner

    Tools such as axe DevTools or Lighthouse catch missing roles and names, but they can't judge keyboard behaviour, so still do the manual tests above.

How to fix it

Best option: use a native `<select>`. It works with every screen reader, keyboard and mobile device with no extra code. You can style the closed state with CSS. Only build a custom widget when you truly need something a native select can't do, such as search inside the list.

Native select with a labelhtml
<label for="service">Service needed</label>
<select id="service" name="service" required>
  <option value="">Choose a service</option>
  <option value="audit">Audit</option>
  <option value="support">Support</option>
</select>
Style a native select without breaking itcss
select {
  appearance: none;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid #555;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1rem center;
}
select:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

If you must keep a custom control, use this pattern for a select-only combobox: a button-like element with role="combobox" that opens a role="listbox" of role="option" items.

ARIA select-only combobox (markup)html
<label id="svc-label">Service needed</label>
<div id="svc" role="combobox" tabindex="0"
     aria-labelledby="svc-label"
     aria-haspopup="listbox"
     aria-expanded="false"
     aria-controls="svc-list">Choose a service</div>
<ul id="svc-list" role="listbox" aria-labelledby="svc-label" hidden>
  <li id="svc-1" role="option" aria-selected="false">Audit</li>
  <li id="svc-2" role="option" aria-selected="false">Support</li>
</ul>
Minimum keyboard handlingjavascript
const box = document.getElementById('svc');
const list = document.getElementById('svc-list');
const opts = [...list.querySelectorAll('[role=option]')];
let idx = -1;

function open() {
  list.hidden = false;
  box.setAttribute('aria-expanded', 'true');
  if (idx < 0) idx = 0;
  highlight();
}
function close() {
  list.hidden = true;
  box.setAttribute('aria-expanded', 'false');
  box.removeAttribute('aria-activedescendant');
}
function highlight() {
  opts.forEach((o, i) => o.classList.toggle('active', i === idx));
  box.setAttribute('aria-activedescendant', opts[idx].id);
}
function choose() {
  opts.forEach((o, i) => o.setAttribute('aria-selected', i === idx));
  box.textContent = opts[idx].textContent;
  close();
}

box.addEventListener('click', () => (list.hidden ? open() : close()));
box.addEventListener('keydown', (e) => {
  const isOpen = !list.hidden;
  if (e.key === 'ArrowDown') { e.preventDefault(); if (!isOpen) open(); else { idx = Math.min(idx + 1, opts.length - 1); highlight(); } }
  else if (e.key === 'ArrowUp') { e.preventDefault(); if (isOpen) { idx = Math.max(idx - 1, 0); highlight(); } }
  else if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); if (isOpen) choose(); else open(); }
  else if (e.key === 'Escape') { close(); }
});
opts.forEach((o, i) => o.addEventListener('click', () => { idx = i; choose(); }));
Fix by platform
  1. Find what builds the dropdown

    Check your form plugin or theme. Many plugins offer a plain dropdown field; switch from any 'fancy select' or Select2-style option to the standard one where available.

  2. Update or replace the plugin

    If the widget lacks keyboard support, update the plugin, check its accessibility settings, or choose a form plugin that outputs native selects.

Custom dropdown before and after

Div-based dropdown

  • No role or name announced
  • Arrow keys and Enter do nothing
  • Selected value not read aloud
  • Form submits without the value

Native or ARIA-correct select

  • Announced as combobox or list with a label
  • Full keyboard control with visible focus
  • Selected option spoken
  • Value reaches the form

How to confirm it's fixed

Confirmation checks
  • You can reach the dropdown with Tab and see a focus outline
  • Enter or Space opens it; arrow keys move; Enter selects; Escape closes
  • A screen reader announces the label, role, state and chosen value
  • The chosen value appears in the submitted form data
  • The control works on iPhone with VoiceOver and Android with TalkBack
  • An automated scan (axe or Lighthouse) shows no name or role errors for it

How to prevent it happening again

Habits that keep dropdowns accessible
  • Default to native form controls in your design system
  • Ask designers and developers to use the ARIA Authoring Practices patterns for any custom widget
  • Add a keyboard-only test to your release checklist for every form
  • Re-test after theme, plugin or page-builder updates
  • Run an accessibility scanner in your build or on a schedule, and do a manual screen reader pass on key forms

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs your customer journeys as a robot visitor and checks steps, tracking hits and lead delivery. It does not judge whether a control works with a screen reader or follows ARIA patterns.

The kind of tool that fits is an accessibility testing tool: an automated scanner such as axe or Lighthouse for roles and names, plus manual testing with a screen reader and keyboard. FunnelGuard can still help with a related risk: if a broken dropdown stops the form from submitting at all, a scheduled journey check can show that the form no longer completes.

Questions people ask

Why can't my screen reader use my dropdown menu?

Most likely the dropdown is built from divs or spans with no role, name or keyboard handling, so the screen reader has nothing to announce or operate. Replace it with a native select, or add role="combobox", role="listbox" and arrow key support.

How do I make a custom select accessible?

Use a native <select> with a <label> whenever you can. If you need a custom design, apply the ARIA select-only combobox pattern: a focusable element with role combobox, aria-expanded and aria-controls, a listbox of option elements, and Arrow, Enter and Escape key handling.

Should I use a native select or a custom dropdown?

Use a native select unless you need features it can't offer, such as search or rich option content. Native selects work with every assistive technology and mobile device without extra code and are far less likely to break.

What ARIA roles does a custom dropdown need?

A select-only custom dropdown needs role="combobox" on the trigger, with aria-expanded, aria-haspopup="listbox" and aria-controls, and role="listbox" with role="option" children. Selected options need aria-selected="true".

How do I test a dropdown with a screen reader?

Turn on NVDA, VoiceOver or TalkBack, Tab to the dropdown and listen. It should read its label, its role and its current value, and you should be able to open it and choose an option using only the keyboard.

Is an inaccessible dropdown a WCAG failure?

Yes. A control without a proper name, role and value fails WCAG 4.1.2, and one that can't be used by keyboard fails 2.1.1. Both are Level A criteria.

Can an automated tool find custom dropdown problems?

Partly. Scanners like axe and Lighthouse can flag missing roles, names and invalid ARIA, but they can't confirm that keyboard behaviour and spoken output make sense. You still need a manual keyboard and screen reader test.

Does FunnelGuard check dropdown accessibility?

No. FunnelGuard monitors journeys, tracking and lead delivery, not accessibility. Use an accessibility scanner and manual screen reader testing for this issue.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.