diff --git a/CHANGELOG.md b/CHANGELOG.md index 08479fdd3..3a941a26f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ :wrench: **Fixes** +- Adds aria-hidden to labels in responsive tables that show only on small screens, to avoid screenreaders calling out them out twice ([PR 942](https://github.com/nhsuk/nhsuk-frontend/pull/942)) - Removing classes from icon card that are not doing anything - Align label bottom margins with fieldset legend bottom margins ([PR 946](https://github.com/nhsuk/nhsuk-frontend/pull/946)). - Fixed bug with inset-text component requiring uppercase `html` argument. Fixes [Issue 950](https://github.com/nhsuk/nhsuk-frontend/issues/950). diff --git a/packages/components/tables/README.md b/packages/components/tables/README.md index 8134ec22a..5d48b479d 100644 --- a/packages/components/tables/README.md +++ b/packages/components/tables/README.md @@ -199,35 +199,35 @@ Find out more about the table component and when to use it in the [NHS digital s - Age 3 to 5 months (weighing more than 5kg) + Age 3 to 5 months (weighing more than 5kg) - How much? 2.5ml + 2.5ml - How often? Max 3 times in 24 hours + Max 3 times in 24 hours - Age 6 to 11 months + 6 to 11 months - How much? 2.5l + 2.5l - How often? Max 3 to 4 times in 24 hours + Max 3 to 4 times in 24 hours - Age 1 to 3 years + 1 to 3 years - How much? 5ml + 5ml - How often? Max 3 times in 24 hours + Max 3 times in 24 hours diff --git a/packages/components/tables/template.njk b/packages/components/tables/template.njk index 1199529cc..0c000b7eb 100644 --- a/packages/components/tables/template.njk +++ b/packages/components/tables/template.njk @@ -31,7 +31,7 @@ {%- if params.responsive %} {%- for cell in row %} - {{cell.header}} {{ cell.html | safe if cell.html else cell.text }} + {{ cell.html | safe if cell.html else cell.text }} {%- endfor %} {%- else %}