Test your Shopify store with a keyboard in 5 minutes
Some shoppers don't use a mouse. People with motor disabilities, people who are blind and use a screen reader, and many power users move around the web with a keyboard or a device that acts like one, such as a switch. If your store's menu, product options or cart drawer can't be used that way, those shoppers can't buy from you.
The good news is that you can test this yourself in about five minutes, with no tools and no technical knowledge. This guide gives you a short script to follow.
Why keyboard access matters
The Web Content Accessibility Guidelines (WCAG) 2.1 make keyboard access a Level A requirement, the most basic level. 2.1.1 Keyboard asks that everything work with a keyboard, 2.1.2 No Keyboard Trap that focus never gets stuck, and 2.4.7 Focus Visible (Level AA) that you can always see where you are. Shopify's theme accessibility guidance also asks merchants not to remove focus styles when editing a theme.
The keys you need
- Tab moves to the next link, button or field. Shift + Tab moves back.
- Enter follows a link or presses a button.
- Space presses a button or ticks a checkbox.
- Arrow keys move between options in a group of radio buttons or a select menu.
- Esc closes menus, drawers and pop-ups.
On a Mac, Safari skips links when you press Tab unless you turn on Press Tab to highlight each item on a webpage in Safari's Advanced settings. Chrome or Firefox are simpler for this test.
The 5-minute test
Open your store in a desktop browser, click once in the address bar, then put the mouse aside. Note anything that fails as you go.
Minute 1: home page and header
- Press Tab once. Does a "Skip to content" link appear? Press Enter on it and check focus jumps past the header (2.4.1 Bypass Blocks).
- Keep pressing Tab through the header. Can you see a clear outline or highlight on every item? If focus seems to disappear, that's a fail.
- Open the main menu and a dropdown with Enter or Space. Can you reach the sub-menu links? Does Esc close it?
- If a pop-up appears (newsletter, discount, cookie banner), can you reach its close button and close it? After closing, can you carry on?
Minute 2: a collection page
- Go to a collection. Can you reach the filters and sort options, change one, and see the results update?
- Can you reach each product card and open it with Enter?
Minute 3: a product page
- Choose a different size or colour with the keyboard. With radio buttons, the arrow keys usually move between options.
- Change the quantity with the plus and minus buttons or by typing.
- Can you open the product image gallery or zoom, and close it again with Esc?
- Press Add to cart.
Minute 4: the cart
- If a cart drawer opens, does focus move into it? Can you change the quantity, remove an item and close the drawer with Esc? When it closes, does focus go back to a sensible place, not the top of the page?
- Can you reach the Check out button?
Minute 5: the footer and anything that moves
- Tab to the footer. Can you reach the newsletter field and its button?
- If you have a slideshow or scrolling announcement bar, is there a pause button you can reach (2.2.2 Pause, Stop, Hide)?
- Did focus ever get hidden behind a sticky header or cookie banner? WCAG 2.2 added 2.4.11 Focus Not Obscured (Minimum) for this.
Throughout, ask: does the focus order make sense? It should move through the page in the order you'd read it (2.4.3 Focus Order).
Common failures and what causes them
- Focus outline invisible. Theme or custom CSS often removes it with
outline: none. A developer can restore a visible focus style with a small CSS change. - Can't open a dropdown menu. The menu may open on mouse hover only. A developer can add keyboard support, or you can switch to a theme menu that already has it.
- Stuck inside a pop-up. A pop-up app may trap focus or have no reachable close button. Check the app's settings, ask the developer, or remove the app.
- Swatches can't be selected. Custom swatches are sometimes built from divs rather than buttons or radio inputs. Ask a developer or the swatch app's developer to fix the markup.
- Cart drawer opens but focus stays behind it. The drawer script isn't moving focus. This needs a developer.
- Focus hidden under a sticky header. The header covers the focused item when you scroll. A developer can add CSS scroll padding.
If a problem only appears on some pages, check which apps run there. Switching an app off under App embeds in the theme editor (on a duplicate theme) is a quick way to see whether it's the cause.
After the keyboard test
The keyboard test finds problems that automated tools often miss, such as a confusing focus order or a trap inside a pop-up. Automated tools find others quickly, such as missing alt text, low contrast and unlabelled fields. Use both. Our guide to what an automated audit can and can't find explains how they fit together, the theme accessibility guide covers fixes in more depth, and the guide to form labels and buttons covers the forms you just tabbed through. If a sticky header or cart bar covers the focused control, see the WCAG 2.2 guide for that check.
Repeat the test after you change themes, install a new app or add a new section type. It takes five minutes, and it's one of the most useful checks you can do.
Frequently asked questions
Do I need a screen reader for this test?
No. The keyboard test needs only a keyboard. A screen reader test is a useful next step, but start here.
Does this test cover checkout?
Shopify runs the checkout, so issues there aren't something your theme controls. You can still check that the Check out button in your cart works with the keyboard.
My theme is from the Shopify Theme Store. Do I still need to test?
Yes. Your apps, custom code, colours and content all change how the store behaves, so test your own store as it is today.
This guide is general information, not legal advice. Passing this test helps make your store easier to use, but no single test or tool can promise that a store meets every accessibility requirement or law.