Keep the slider for mouse users if you like, but add two labelled boxes for the lowest and highest price, or a short list of price ranges, so keyboards, screen readers and fingertips can filter too.

Two handles on a thin bar

An online shop's category pages have filters down the left side. Under Price sits a thin bar with a small handle at each end, and shoppers drag the handles to set a range.

With a mouse it takes a second. A customer who uses only the keyboard presses Tab and jumps straight past it, and one using screen reading software may hear nothing at all.

On a phone the handles are smaller than a fingertip. Dragging one often scrolls the page instead, or moves the other handle.

Who the slider leaves out

A slider built only for a mouse shuts out more people than its designer pictured:

All of these customers can see the products. What they cannot do is narrow them down, so they scroll through every item or leave for a shop that lets them choose.

Why a slider needs extra work

Browsers already know how to handle text boxes, checkboxes and links. Those can be reached with the keyboard, announced by screen reading software and tapped on a phone without any extra code.

A slider on a shop site is usually a script that turns ordinary page elements into draggable handles. The script has to supply everything a built-in control already has.

That includes responding to the arrow keys, accepting touch as well as a mouse, and telling screen reading software that this is a slider with a lowest, highest and current value.

A set of code attributes known as ARIA lets a developer describe a slider properly, and some scripts use it. Many shop sliders, especially older ones, do not.

Boxes for the lowest and highest price

The plainest fix is two text boxes beside the slider, labelled Lowest price and Highest price, with a button to apply them.

Every browser, keyboard and screen reader already understands a labelled box. A speech recognition user can say its name, and a phone can offer a number pad when it is tapped.

Link the boxes and the slider in both directions: dragging a handle updates a box, and typing in a box moves its handle. Mouse users keep what they like.

Accept what people type. A shopper who writes $40, 40 or 40.00 means the same thing, and the form should take all three.

Or a short list of ranges

For many shops a short list of price ranges does the job better than any slider. Each range is a link or a checkbox, which everyone already knows how to use.

Choose ranges that suit what you sell, such as under $100, $100 to $300, $300 to $600 and over $600. Show how many products fall in each, and leave out empty ranges.

A list like this is quick to read aloud, easy to tap and simple to scan. Shoppers see the choices at a glance instead of guessing where to drag.

A worked example

A printer repair shop in Prince George fixes office printers and copiers, and sells refurbished printers, toner and parts through an online shop that ships to offices across northern BC.

Its catalogue had a price slider on every category page. A customer who works without a mouse phoned to ask how to see printers under a set price, because the handles would not move for her.

The shop's web developer tested it. Tab skipped the handles, screen reading software announced only a blank link, and on a phone the handles were easy to miss entirely.

The developer added Lowest price and Highest price boxes under the slider, linked to it, with an Apply button. Above them, printers now have a list of four price ranges with product counts.

The handles also gained keyboard support and proper names. Typed amounts, ranges and handles all set the same filter, so the results match whichever way a customer chooses.

Saying what the filter did

Once a filter is applied, say so in words above the results, such as printers from $100 to $300, with a link to clear it.

If the results change without the page reloading, the developer also needs to tell screen reading software that they changed. Otherwise those users press the button and hear nothing new.

Give each filtered view its own address as well, so a customer can bookmark it or send it to whoever approves purchases.

Testing it yourself

Put the mouse aside and use the shop with the keyboard alone. Tab to the price filter, set a range, apply it and reach the first product.

Then try it on a phone held in one hand, while standing. If either attempt needs patience, your customers are running out of it.

Screen reading software is built into many computers and phones, and a developer who builds shop filters should test with it before calling the work finished.

The counter-case

A shop with forty products may not need a price filter at all. Sorting by price, lowest first, does much the same job with one familiar link.

Some sliders in well-maintained shop software already support keyboards, screen reading software and touch. Where testing confirms that, the boxes are a convenience rather than a repair.

But even a slider that passes every test is harder for many people than two boxes. Offering both takes little effort and leaves no shopper stuck.

A filter everyone can set

  1. Try the slider with the keyboard alone.
  2. Try it on a phone with one thumb.
  3. Add Lowest and Highest price boxes with visible labels.
  4. Link the boxes and the slider in both directions.
  5. Offer a short list of ranges where it suits your products.
  6. State the active filter in words above the results.
  7. Ask your developer to test with screen reading software.

Step three reaches the most people at once. Two labelled boxes work for keyboards, screen readers, speech recognition and phones, and no shopper has to learn anything new to use them.

How people using speech recognition find and press controls by saying their visible names is described in visitors who click by speaking the button's name.


Frequently asked questions

Why can keyboard users not move a price slider?

On many shop sites the slider is a script written for mouse dragging. Unless it adds keyboard support, Tab skips its handles and the arrow keys do nothing.

Do screen readers announce price sliders?

Only if the developer describes the slider in the code, with its name and its lowest, highest and current values. Many shop sliders leave that out.

Should the slider be removed?

Not necessarily. Keep it for mouse users if you like, and add two labelled price boxes or a short list of ranges beside it.

Why are sliders awkward on phones?

The handles are smaller than a fingertip, the finger hides what it is moving, and some slider scripts ignore touch, so dragging scrolls the page.

How many price ranges should the list have?

Usually four or five, chosen to suit your own products, with the number of items in each range shown and empty ranges left out.

How can I check the filter myself?

Put the mouse aside and set a price range with the keyboard alone, then do the same on a phone with one thumb. Fix anything awkward.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Price filter that only works with a mouse?

Send us a link to one category page, and we will test the filter and suggest the simplest accessible version.

Start a Conversation