# Remove focusable links from aria-hidden regions

Canonical: https://githtml.com/guides/aria-hidden-focusable-links-report
Published: 2026-11-23
Publisher: WaveTech LLC / gitHtml

Do not place focusable links or controls inside an aria-hidden region. The region may disappear from the accessibility tree while keyboard focus can still enter it, creating an unexplained stop. Decide whether the content should be available, decorative, or truly hidden, and use a consistent visibility and interaction strategy.

## Understand the access barrier

An author may hide a duplicate navigation strip from screen readers without removing its links from keyboard navigation. The resulting focus sequence can land on controls whose identity is not exposed. Setting aria-hidden=false on a descendant cannot override an ancestor's hidden state.

## Use a deliberate document pattern

For decorative duplication, remove interactive descendants or remove the duplicate region entirely. For useful navigation, expose it and give it an appropriate label. Do not add positive tabindex values to route around the problem.

1. Inspect aria-hidden ancestors of focusable controls.
2. Choose one consistent availability state for the region and its descendants.
3. Verify both the focus sequence and accessible names after the correction.

````html
<span aria-hidden="true">Decorative ornament</span>
<a href="#summary">Read the summary</a>
````

## Check the actual reading experience

Traverse the page with a keyboard and inspect the accessibility tree at every unexpected stop.

## Repair a duplicated navigation strip

Imagine an export containing a desktop sidebar and a compact mobile contents bar. The author applies aria-hidden=true to the sidebar because it looks redundant, but its anchors remain in the keyboard sequence. A keyboard user can now focus an item that a screen reader does not expose. The repair begins with deciding which navigation is actually available at the current layout, rather than adding another hidden label or manually skipping selected links.

If the sidebar should disappear entirely at that breakpoint, use a mechanism that consistently removes its rendered and interactive presence, and verify the resulting behavior. If it remains visibly useful, expose it to assistive technology as well and distinguish its purpose with an appropriate navigation label. Removing an element from the Tab sequence alone does not necessarily prevent pointer activation or scripted focus, so tabindex=-1 is not a universal fix for an unavailable region.

Aria-hidden is inherited through the accessibility tree: setting aria-hidden=false on a child does not override a hidden ancestor. Inspect ancestors when a control has a sensible label but remains unexplained during navigation. Also avoid hiding a region while focus is still inside it; an interactive implementation must deliberately move focus to an appropriate visible location when availability changes. In a static reading copy, eliminating duplicated controls often provides a simpler solution than preserving responsive application logic. Test the final exported file, because a generator may reintroduce hidden wrappers even when the source template looked correct.

## Sources and further reading

- [MDN: aria-hidden](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-hidden)

## Related guides

- [Add a useful transcript beside an audio recording](https://githtml.com/guides/audio-transcript-html-reading-copy)
- [Isolate mixed-direction names in HTML report sentences](https://githtml.com/guides/bdi-isolate-user-names-report)
- [Keep caption tracks attached to HTML video examples](https://githtml.com/guides/caption-track-missing-html-video)
- [Check contrast of meaningful chart lines and boundaries](https://githtml.com/guides/chart-lines-nontext-contrast)

Editorial approach: https://githtml.com/guides/about
