Skip to content

Update visually-hidden text class - #5668

Merged
yndajas merged 1 commit into
mainfrom
update-hidden-text-class
Sep 18, 2026
Merged

yndajas merged 1 commit into
mainfrom
update-hidden-text-class

Conversation

@yndajas

@yndajas yndajas commented Sep 18, 2026

Copy link
Copy Markdown
Member

Currently we see the text "Warning This document has not been updated for a while now. It may be out of date.". The intention is for the "Warning" part to be read out by screen readers, but not visible

The old class was removed in govuk-frontend v5.0.0: https://frontend.design-system.service.gov.uk/v5/changes-to-govuk-frontend-v5/

This was because it duplicates the govuk-visually-hidden, to which the 5.0.0-beta notes advised migrating:
alphagov/govuk-frontend#4389

Screenshots

Before

Screenshot 2026-09-18 at 13 49 32

After

Screenshot 2026-09-18 at 13 48 48

Currently we see the text "Warning This document has not been updated
for a while now. It may be out of date.". The intention is for the
"Warning" part to be read out by screen readers, but not visible

The old class was removed in govuk-frontend v5.0.0:
https://frontend.design-system.service.gov.uk/v5/changes-to-govuk-frontend-v5/

This was because it duplicates the `govuk-visually-hidden`, to which the
5.0.0-beta notes advised migrating:
alphagov/govuk-frontend#4389

@MartinJJones MartinJJones left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot, thanks for fixing 馃憤

@yndajas
yndajas merged commit 20b500f into main Sep 18, 2026
5 checks passed
@yndajas
yndajas deleted the update-hidden-text-class branch September 18, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants