Skip to content
Pandus

Recommended practice Priority: Minor · experimental check: may need a manual look

A keyboard-focusable element does not say what it is

An element that can be reached with the Tab key, such as a clickable div or span, has no role that tells assistive technology it is a button, link or other control. axe marks this check as experimental, so results need a manual review. This is a recommended practice, not a WCAG AA requirement.

This text was translated automatically and has not been reviewed by a native speaker yet.

Why it matters to your customers

A keyboard or screen reader user lands on the element but hears only its text, or nothing, without "button" or "link". They cannot tell that it can be activated, so options like a size picker, a filter or "add to wishlist" may be skipped.

Who is affected

  • screen reader users
  • keyboard users
  • voice control users

How to fix it

Use native elements for controls: <button> for actions and <a href> for navigation. If a custom element must stay, add a suitable role (button, link, tab, checkbox and so on) plus the keyboard behaviour that role expects. If the element is not interactive, remove its tabindex so it does not receive focus. Because this rule is experimental, confirm each result manually before changing code.

On Shopify

Usually caused by custom code in the theme or apps, for example colour swatches, quick view or wishlist buttons. Replace the clickable div or span with a <button> in the Liquid snippet, or ask the app developer to fix it.

On Shoptet (CZ)

Decided by the template and add-ons. Report the element to Shoptet or the add-on developer; custom code you added yourself can be fixed directly.

On PrestaShop

Usually comes from theme JavaScript or modules such as variant pickers and sliders. Fix the markup in the theme's .tpl files and scripts, or ask the module author.

On WooCommerce

Often comes from page-builder widgets or plugins that make divs clickable. Update the plugin or change the markup in a child theme template so controls are real buttons or links.

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: A keyboard-focusable element does not say what it is

An element that can be reached with the Tab key, such as a clickable div or span, has no role that tells assistive technology it is a button, link or other control. axe marks this check as experimental, so results need a manual review. This is a recommended practice, not a WCAG AA requirement.

**How to fix:** Use native elements for controls: <button> for actions and <a href> for navigation. If a custom element must stay, add a suitable role (button, link, tab, checkbox and so on) plus the keyboard behaviour that role expects. If the element is not interactive, remove its tabindex so it does not receive focus. Because this rule is experimental, confirm each result manually before changing code.

## 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 focus-order-semantics. dequeuniversity.com, github.com

Guides and tools

Help articles

All rules we check