Skip to content

Commit 7cb988e

Browse files
committed
Accessibility tweaks
Adds visually hidden text to the callout tag text to better explain what it is Adds aria-hidden=true to brand tags under headings so that screenreaders don't read them out.
1 parent 8627205 commit 7cb988e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/footer/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Make it clear whether content is available for re-use - and if it is, under what
4949
### Update to refresh the GOV.UK brand
5050

5151
<strong class="govuk-tag brand-tag-green">
52-
Brand
52+
Brand<span class="govuk-visually-hidden"> note</span>
5353
</strong>
5454

5555
If you use the Nunjucks macro and page template across your service, you can enable the brand refresh by setting the page template’s `rebrand` option to `true`. This will automatically make all needed changes related to the brand refresh.

src/components/header/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ For guidance on how to plan your header and navigation, see the [Help users navi
6464
### Update to refresh the GOV.UK brand
6565

6666
<strong class="govuk-tag brand-tag-green">
67-
Brand
67+
Brand<span class="govuk-visually-hidden"> note</span>
6868
</strong>
6969

7070
If you use the Nunjucks macro and page template across your service, you can enable the brand refresh by setting the page template’s `rebrand` option to `true`. This will automatically make all needed changes related to the brand refresh.

src/components/service-navigation/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ For guidance on how to plan your header and navigation, see the [Help users navi
5252
### Update to refresh the GOV.UK brand
5353

5454
<strong class="govuk-tag brand-tag-green">
55-
Brand
55+
Brand<span class="govuk-visually-hidden"> note</span>
5656
</strong>
5757

5858
If you use the Nunjucks macro and page template across your service, you can enable the brand refresh by setting the page template’s `rebrand` option to `true`. This will automatically make all needed changes related to the brand refresh.
@@ -68,7 +68,7 @@ Apply a class `govuk-header--full-width-border` to the GOV.UK header.
6868
{{ example({ group: "components", item: "service-navigation", example: "with-govuk-header", html: true, nunjucks: true, open: false }) }}
6969

7070
<strong class="govuk-tag brand-tag-green">
71-
Brand
71+
Brand<span class="govuk-visually-hidden"> note</span>
7272
</strong>
7373

7474
You do not need to change the bottom border of the updated GOV.UK header component with the refreshed GOV.UK branding.

views/partials/_callout.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% macro callout(params) -%}
55
{% set calloutContent -%}
66
{{ govukTag({
7-
text: params.tagText,
7+
html: params.tagText + '<span class="govuk-visually-hidden"> note</span>',
88
classes: "app-callout__tag"
99
}) }}
1010
{% if params.heading -%}

0 commit comments

Comments
 (0)