aria-hidden
An ARIA attribute that removes an element and everything inside it from the accessibility tree, while leaving it visible and clickable.
In more detail
Decorative icons use aria-hidden="true" so screen readers do not read out meaningless SVG content. It does not stop keyboard focus, so it must never be put on focusable content; the inert attribute is the safer way to hide a background behind a modal.
Related terms
- inert attribute — An HTML attribute that makes an element and everything inside it unclickable, unfocusable and hidden from assistive technology.
- accessibility tree — A simplified version of the DOM tree that the browser builds for assistive technology, listing each element's role, name and state.
- SVG — Scalable Vector Graphics, an XML-based image format that describes shapes with coordinates so it stays sharp at any size.
Taught in
- Overlay Architecture: Portals, Stacking Contexts & Backdrops — Design Systems & Component Engineering
- WAI-ARIA Semantics: Roles, States & Accessible Name Computation — Design Systems & Component Engineering