visually hidden
CSS that hides content from sight while keeping it in the accessibility tree so screen readers still read it.
In more detail
A typical sr-only class makes the element 1 pixel square, clips it and removes it from layout without using display: none, which would hide it from screen readers too. Announcer live regions and extra labels are often visually hidden.
Related terms
- ARIA live region — An element whose text changes are announced by screen readers even though focus is elsewhere, set up with aria-live or roles such as status and alert.
- screen reader — Software that reads the screen aloud or sends it to a braille display, used mainly by blind and low-vision people.
Taught in
- Screen Reader Interactions: Live Regions & Announcement Cues — Design Systems & Component Engineering