This component provides text for screen readers that is visually hidden.
import { VisuallyHidden } from '@frontile/utilities';
Traditionally, developers use display: none
to hide content on the page.
Unfortunately, this simple and common action can be problematic for users of screen readers.
In the following example, screen readers will announce "Save" and will ignore the icon; the browser displays the icon and ignores the text.
Further reading: