Visually hidden text
Most of the time content should be both visible on the screen and available to screen readers. However, sometimes when space is at a premium, we may want to hide text that would clutter the screen. This puts users of assistive technology like screen readers at a disadvantage.
We can hide content but make it available to users of assistive technology
using the govuk-visually-hidden
class. This library provides a helper method
which makes hiding content easier.