Recommended practice Priority: Serious
The keyboard order is forced into an unexpected sequence
Some elements have a tabindex value greater than 0, which makes them jump ahead of everything else when someone moves through the page with the Tab key. This is a recommended practice beyond the WCAG 2.2 AA level.
This text was translated automatically and has not been reviewed by a native speaker yet.
Why it matters to your customers
Keyboard users expect focus to move in the order they see on screen. With tabindex above 0, focus jumps around, for example from the logo straight to a newsletter field and then back to the menu, so people lose their place and may miss important fields at checkout.
Who is affected
- keyboard users
- screen reader users
- people with motor disabilities
How to fix it
Replace every positive tabindex with tabindex="0" (to make an element focusable in its natural place) or remove it entirely. If the order still feels wrong, change the order of elements in the HTML so it matches the visual order, instead of forcing it with tabindex. Use tabindex="-1" only for elements that should receive focus from a script.
On Shopify
Usually comes from custom code in theme sections or from an app such as a pop-up or chat widget. Search the theme code for tabindex and fix it in Liquid, or ask the app developer.
On Shoptet (CZ)
If it comes from your own inserted code or a third-party widget, fix that code; if it comes from the template, ask Shoptet or a partner.
On PrestaShop
Check the theme's .tpl files and module templates for tabindex values above 0, and override module templates in the theme rather than editing modules.
On WooCommerce
Often added by pop-up, form or chat plugins, or by the theme. Search the page source for tabindex, fix it in the child theme or report it to the plugin author.
Fix it with AI
Copy this prompt into ChatGPT, Claude or Copilot and add the HTML of the element. Check the answer before you publish it.
You are an experienced web developer and accessibility specialist. Fix this accessibility problem on my website so that it meets WCAG 2.2 level AA. Website: [https://…] ## Problem: The keyboard order is forced into an unexpected sequence Some elements have a tabindex value greater than 0, which makes them jump ahead of everything else when someone moves through the page with the Tab key. This is a recommended practice beyond the WCAG 2.2 AA level. **How to fix:** Replace every positive tabindex with tabindex="0" (to make an element focusable in its natural place) or remove it entirely. If the order still feels wrong, change the order of elements in the HTML so it matches the visual order, instead of forcing it with tabindex. Use tabindex="-1" only for elements that should receive focus from a script. ## Elements found by the automated check [Paste the HTML of the element here, or the selector from the Pandus report] ## Requirements - Change only what is needed; keep the design and how the site works. - Do not add accessibility overlays or widgets; fix the code or the content. - Show the corrected code and say in which template or file it goes. - Explain how to check the fix with the keyboard and a screen reader.
Standards
Not a WCAG success criterion: a recommended practice that makes the site easier to use.
Automated check: axe-core rule tabindex.
dequeuniversity.com, github.com, www.w3.org
Read next
Guides and tools
Help articles
-
How to read a report and what to fix first
What each part of the report means and how to turn it into a to-do list for your developer.