How do I make product search, filters and sorting accessible?

Published 6 November 2026 · Last updated · General information, not legal advice

To make product search, filters and sorting accessible, label every control, build them from real form elements that work with a keyboard, and tell screen reader users what happened when results change. That last step is the one most stores miss. When a visitor ticks "Size: M" and the product grid updates without a new page, a sighted visitor sees fewer products; a screen reader user hears nothing. WCAG 4.1.3 Status Messages (level AA) asks that messages like "24 products found" can be announced by assistive technology without moving focus.1 W3C's own example of a status message is a search results summary: "5 results returned".1

Search: label it and announce the results

  • Give the search box a label. WCAG 3.3.2 asks for labels or instructions when content requires input.5 Placeholder text that disappears when you type is not a reliable label. Missing form labels are common: WebAIM found them on 51% of the top million home pages in 2026.6 A visible "Search products" label, or a properly named search button with a visually hidden label, solves it.
  • Name the search button. A magnifying glass icon needs an accessible name such as "Search".
  • Announce the outcome. On the results page, say how many results there are in the main heading, such as "12 results for linen shirt". If results load in place, announce the count with a status message.
  • Handle no results kindly. W3C lists "No results returned" and "Searching..." as status messages too, when they appear without a page load or a focus change.1

Predictive search

Search boxes that show suggested products as you type are custom widgets, and they are easy to get wrong. Each suggestion must be reachable with the arrow keys or Tab, the box must expose whether the suggestion list is open, and the number of suggestions should be announced. WCAG 4.1.2 Name, Role, Value asks that custom controls expose their name, role and states, such as expanded or collapsed, to assistive technology.3 If your theme's predictive search fails a keyboard test, it is often better to turn it off than to leave it half-working.

Filters: real controls, clear groups

FilterBuild it asWatch for
Size, colour, brandCheckboxes in a group with a legend, such as "Size"Colour swatches with no text name; tiny checkboxes
Filter section headingsA button that opens and closes the section, with its expanded state exposedClickable div elements that cannot get focus
Price rangeTwo number fields, optionally with a sliderA slider that only works by dragging
AvailabilityA checkbox or a toggle button with its state exposedA switch that looks on or off but says nothing to a screen reader
Active filtersA list of buttons, each named, such as "Remove filter: Size M"Little "×" buttons with no name
Mobile filter drawerA modal dialog with a heading and a close buttonFocus left behind the drawer

Colour swatches deserve a special mention. A swatch that is only a coloured circle tells a screen reader user nothing, and some visitors cannot tell the colours apart. Give each swatch a text name, such as "Sage green", and show the selected name next to the swatches. Keep swatches and filter checkboxes big enough to tap: WCAG 2.5.8 asks for at least 24 by 24 CSS pixels, or enough space around smaller targets.7 See touch target size for the details.

Price sliders

WCAG 2.5.7 Dragging Movements (level AA) says that all functionality that uses a dragging movement can be achieved by a single pointer without dragging, unless dragging is essential.4 A price slider fails if dragging the handles is the only way to set a range. The simple fix is a pair of "Min price" and "Max price" fields next to the slider. The slider handles still need names, such as "Minimum price", and must move with the arrow keys, because WCAG 2.1.1 asks that all functionality works with a keyboard.4

When results update: no surprises

WCAG 3.2.2 On Input (level A) says changing a setting, such as ticking a checkbox or picking from a select, must not automatically cause a change of context unless the visitor was told beforehand.2 W3C counts moving focus and loading a new page as changes of context; updating content in place is not always one.2 So for filters:

  • Updating the grid in place while focus stays on the checkbox is fine. Announce the new count with a status message.
  • Reloading the page each time a box is ticked, which drops keyboard focus back at the top, is a change of context. Either warn visitors before they use the filters, or add an "Apply filters" button. W3C's technique G80 is exactly that: a submit button that starts the change, so the control itself does nothing on its own.2
  • Moving focus to the first product after each filter change is also a change of context, and makes it hard to tick a second box.

Status messages in practice

W3C's sufficient technique for result counts is ARIA22: using role="status" to present status messages.1 In practice:

  1. Put an empty element with role="status" in the page when it loads, for example above the product grid.
  2. When results change, write the new text into it: "24 products found" or "No products match these filters".
  3. Keep the message short and do not repeat it for every keystroke while someone is typing.

W3C also lists using role="alert" or aria-live="assertive" for content that is not important and time-sensitive as a failure, because it interrupts people.1 A result count is polite news, not an alert. The same pattern works for "Added to cart" and cart count updates, which W3C also uses as an example.1

Sorting

A "Sort by" control should be a labelled select or a group of buttons. If choosing an option reloads the page, that is a change of context under 3.2.2, so either use an Apply button or tell visitors beforehand.2 After sorting, announce it, for example "Sorted by price, low to high", and keep the current choice visible.

Shopify and WordPress

On Shopify, search and collection filtering are mostly built by the theme, and some stores add search or filter apps. On WordPress and WooCommerce, filters usually come from the theme, WooCommerce blocks or a plugin. In both cases, test the version on your store, including the mobile filter drawer, and retest after theme or app updates. If a theme's filters reload the page without warning, a developer can add an Apply button and a status message; Website Mechanic can propose fixes like this as a pull request.

How to test search and filters

  1. Using only a keyboard, search for a product, open a filter section, tick a filter, set a price range and change the sort order.
  2. With a screen reader on, do the same. Do you hear the number of results after each change?
  3. On a phone, open the filter drawer, apply a filter and close it. Where does focus land?
  4. Run an automated check for missing labels, unnamed buttons and small targets. Jralo's free check tests your homepage and up to five linked pages against WCAG 2.2 A and AA, and helps you understand which countries' accessibility laws may be relevant, with a link to a guide for each (general information, not legal advice).

Automated tools find many problems, not all. They can see a missing label, but not whether a result count is ever announced, so the screen reader test matters most here.

What else do people ask?

Should filters apply instantly or with an Apply button?

Either can work. Instant filtering is fine if results update in place, focus stays on the control and the new count is announced. If changing a filter reloads the page or moves focus, that is a change of context, which WCAG 3.2.2 allows only if visitors are told in advance. An Apply button avoids the problem.

Is a price range slider accessible?

Only if it can be used without dragging. WCAG 2.5.7 Dragging Movements (level AA) requires another way to do anything done by dragging, such as minimum and maximum number fields beside the slider. The slider's handles also need names and must work with the arrow keys.

Should "no results" be announced too?

Yes. W3C's guidance for 4.1.3 gives "No results returned" as an example of a status message, alongside "Searching..." and result counts. Pair it with something useful on the page, such as a spelling suggestion or a link to remove the last filter.

Check your site now

Jralo's free check tests your homepage and up to five pages for accessibility (WCAG 2.2 A and AA) and website QA problems, and tells you which countries' accessibility laws are likely relevant to you. No sign-up.

Run the free check

Where do these facts come from?

Every number and legal statement in this post links to one of these sources, read on 13 October 2026.

  1. W3C WAI: Understanding Success Criterion 4.1.3 Status Messages
  2. W3C WAI: Understanding Success Criterion 3.2.2 On Input
  3. W3C WAI: Understanding Success Criterion 4.1.2 Name, Role, Value
  4. W3C: Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation, version of 12 December 2024
  5. W3C WAI: Understanding Success Criterion 3.3.2 Labels or Instructions
  6. WebAIM: The WebAIM Million, 2026 report
  7. W3C WAI: Understanding Success Criterion 2.5.8 Target Size (Minimum)

More questions

What should you read next?