Screenreader-only
<gcds-sr-only>
Also called: visually hidden, assistive text.
The screenreader-only component is text information only accessible with assistive technologies.
-
GitHub -
Figma
Screenreader-only component preview
Problems screenreader-only solves
Use screenreader-only to:
- Provide context to people using screen reader assistive technologies.
- Offer a text option to communicate information typically solely available by visual means.
- Communicate effectively without adding more text to the main content. This helps reduce cognitive load for everyone by only providing content when and where it’s needed.
- Improve the assistive tech experience when there are no other suitable options in semantic HTML.
Related components
Headings for structuring content by creating levels of hierarchy that organize page content visually and mentally, using GC Design System styles.
Text for paragraphs displaying non-heading content with matching GC Design System styles.
Help us improve
Have questions or a request? Give feedback on our contact form.
Something's wrong? Raise it through GitHub with an