Accessibility · Keyboard and focus

Nested interactive controls

A custom button on this page contains a link. Interactive controls inside other controls confuse screen readers and are hard to use by keyboard.

How this page is built

The box below has role="button" and contains a link.

Open details, or visit the link target

Why it matters

A button’s content is read as its name, and any controls inside it are hidden from assistive technology. Screen reader users then cannot find or use the inner link, and clicks may trigger both controls at once.

Accessibility problems matter for search too. Search engines read the same code that screen readers read. Many crawl tools now run accessibility checks next to their SEO checks. A page that works for everyone is easier to use, and people stay on it for longer.

How to check it

Run an automated checker such as axe DevTools, Lighthouse or WAVE, or a crawler with accessibility checks, on this page. axe reports this under the rule nested-interactive.

How to fix it

Separate the controls so that neither is inside the other. Place the link next to the button, or make the whole area one control.

Back to all tests