alphagov / government-frontend

Serves government pages on GOV.UK
https://docs.publishing.service.gov.uk/apps/government-frontend.html
MIT License
50 stars 17 forks source link

Use govuk publishing components content list to prevent hyphens being read out by screenreaders #3163

Closed beccapearce closed 3 months ago

beccapearce commented 3 months ago

What

Use the contents-list from govuk-publishing-component to render the list of corporate information pages for worldwide organisations.

Why

The contents list component has a fix for an issue where nearly every screen reader reads out the hyphen as either “dash“ or “hyphen“ before each item/link in the Corporate information list. Screen reader users found that frustrating to read through, so this should improve the experience.

Screenshots

Before After
image image

Trello card: https://trello.com/c/pVeGF0WE

beccapearce commented 3 months ago

Closing this PR in favour of another one that uses the list component to solve the same issue. By using the list instead of the content-list we avoid adding a confusing contents heading to the list