How to fix tabindex on Shopify

Remove or replace all positive tabindex values (tabindex="1" or higher) on your page elements, using tabindex="0" for focusable elements and tabindex="-1" only when programmatic focus is needed.

Steps for Shopify

  1. In your Shopify admin, go to Online Store → Themes → click the three-dot menu next to your active theme → Edit code.
  2. Use the search icon (🔍) at the top of the file list to search across all theme files for 'tabindex'.
  3. For each result, open the file (common locations: layout/theme.liquid, sections/.liquid, snippets/.liquid) and locate the tabindex attribute.
  4. Change any tabindex value greater than 0 to '0' (or remove the attribute if the element is a native interactive element like a button or a link).
  5. Click Save on each file you modify.
  6. If you use a third-party theme, check the theme's support documentation or contact the theme developer, as some themes have accessibility options in the Theme Settings (Online Store → Themes → Customize → Theme settings).
Official Shopify documentation ↗

What is tabindex?

The `tabindex` attribute controls the order in which keyboard users move through interactive elements on a page using the Tab key. A value of `tabindex="0"` means an element joins the natural tab order based on where it appears in the HTML. A value of `tabindex="-1"` removes the element from the tab order but still allows it to receive focus via JavaScript. A positive value — like `tabindex="1"`, `tabindex="5"`, or any number above zero — forces a custom tab order that almost always creates a confusing, broken experience for keyboard and screen-reader users. This accessibility rule flags any element with a tabindex value greater than 0.

Positive tabindex values hijack the natural reading and navigation order, causing keyboard-only users and screen-reader users to jump around the page unpredictably — often skipping important links, buttons, or form fields entirely, or hitting them in an illogical sequence. This directly violates WCAG 2.1 Success Criterion 2.4.3 (Focus Order) and can expose your store to legal accessibility complaints or lawsuits, which are increasingly common in e-commerce. Beyond legal risk, a broken keyboard experience means customers who rely on keyboard navigation (including many users with motor disabilities) may be unable to complete checkout, contact forms, or product searches — directly costing you conversions and revenue. Fixing this is also a signal of overall code quality that can indirectly support SEO through improved Core Web Vitals and reduced bounce rates from frustrated users.

See the complete Tabindex guide for every platform and the full background.

Not sure if your Shopify store has this?

Run a free SEOLZ scan — we’ll find tabindex and every other issue across your whole site.

Scan my site free

Fix tabindex on another platform