How do I make product search, filters and sorting accessible?
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
| Filter | Build it as | Watch for |
|---|---|---|
| Size, colour, brand | Checkboxes in a group with a legend, such as "Size" | Colour swatches with no text name; tiny checkboxes |
| Filter section headings | A button that opens and closes the section, with its expanded state exposed | Clickable div elements that cannot get focus |
| Price range | Two number fields, optionally with a slider | A slider that only works by dragging |
| Availability | A checkbox or a toggle button with its state exposed | A switch that looks on or off but says nothing to a screen reader |
| Active filters | A list of buttons, each named, such as "Remove filter: Size M" | Little "×" buttons with no name |
| Mobile filter drawer | A modal dialog with a heading and a close button | Focus 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:
- Put an empty element with
role="status"in the page when it loads, for example above the product grid. - When results change, write the new text into it: "24 products found" or "No products match these filters".
- 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
- Using only a keyboard, search for a product, open a filter section, tick a filter, set a price range and change the sort order.
- With a screen reader on, do the same. Do you hear the number of results after each change?
- On a phone, open the filter drawer, apply a filter and close it. Where does focus land?
- 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 checkWhere do these facts come from?
Every number and legal statement in this post links to one of these sources, read on 13 October 2026.
- W3C WAI: Understanding Success Criterion 4.1.3 Status Messages
- W3C WAI: Understanding Success Criterion 3.2.2 On Input
- W3C WAI: Understanding Success Criterion 4.1.2 Name, Role, Value
- W3C: Web Content Accessibility Guidelines (WCAG) 2.2, W3C Recommendation, version of 12 December 2024
- W3C WAI: Understanding Success Criterion 3.3.2 Labels or Instructions
- WebAIM: The WebAIM Million, 2026 report
- W3C WAI: Understanding Success Criterion 2.5.8 Target Size (Minimum)
More questions
- EN 301 549 explained: the European accessibility standard and WCAG
- Jralo MCP real-time alerts: website monitoring for your agent
- Why are so many website accessibility lawsuits filed in New York?
- Shopify accessibility statement: free feedback wording
- California's Unruh Act and websites: what store owners should know
- PHP2Shell: is your website affected, and what to do
- Black Friday checkout accessibility: a one-week checklist
- Israel's website accessibility regulations explained
- WCAG 1.4.13 Content on Hover or Focus: a Shopify test
- India's RPwD Act 2016 and websites: what businesses need to know
- France: accessibility rules for online shops (EAA and RGAA)
- Germany's BFSG: what it means for online shops
- WCAG 1.4.12 Text Spacing: how to test a Shopify store
- Does Australia's Disability Discrimination Act apply to websites?
- AODA website requirements checklist for Ontario businesses
- Skip links on a Shopify theme: what WCAG 2.4.1 requires
- Does the UK Equality Act 2010 apply to my website?
- What makes a good page title for product, collection and checkout pages?
- Why do I need to set the page language for screen readers?
- How do I make log-in and CAPTCHA accessible under WCAG 3.3.8?
- How do I make animation and motion on my website accessible?
- How do I make data tables and size charts accessible?
- How do I write accessible form error messages?
- PDFs on your website: when to use HTML instead, and how to make PDFs accessible
- Does my website still work when visitors zoom in? Resize and reflow explained
- How big do buttons and links need to be under WCAG 2.5.8?
- How do I make a cookie consent banner accessible?
- How do I make pop-ups and modal dialogs accessible?
- How do I write link text that makes sense out of context?
- Why does heading structure matter for screen reader users?
- Visible focus: why removing outlines hurts, and what WCAG 2.2 asks
- Accessible navigation and mega menus
- Accessible product image galleries, sliders and carousels
- How to make a Shopify cart drawer accessible
- Accessible Shopify variant pickers and colour swatches
- The European Accessibility Act: a step-by-step plan for small online sellers
- ADA Title III and websites in plain English
- What to put in an accessibility statement
- How to make a WooCommerce store accessible
- How to fix accessibility issues without breaking your theme
- How to make a Shopify theme accessible: settings, apps and what to check
- Captions, transcripts and audio description for product and marketing video
- What a screen reader user hears on your product page, and how to fix it
- Accessible forms and checkout: labels, errors and autocomplete
- How to test your website with only a keyboard in 10 minutes
- Colour contrast explained: what WCAG asks and how to fix brand colours
- Why automated accessibility testing finds some problems but not all
- How do I write alt text that actually helps?
- What did WCAG 2.2 add to WCAG 2.1?
- How can I prove my website is monitored for accessibility?
- Does the European Accessibility Act apply to my online store?
- Do accessibility widgets make a website ADA compliant?
- Got an ADA website demand letter? What to do first
- How do I check if my website is accessible? A 15-minute method
- Website accessibility laws by country (2026)