Visitar URL original
Merge pull request #5491 from uswds/al-identifier-text · uswds/uswds@9b27532 · GitHub
Skip to content

Commit 9b27532

Browse files
authored
Merge pull request #5491 from uswds/al-identifier-text
USWDS - Identifier: Update "An official website" screen reader text
2 parents 4993d2c + b249552 commit 9b27532

5 files changed

Lines changed: 14 additions & 4 deletions

File tree

‎packages/usa-identifier/src/content/usa-identifier.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"masthead": {
66
"aria_label": "Agency identifier,",
77
"description": "Agency description,",
8-
"content": "An official website of the",
8+
"content_prefix": "An",
9+
"content": "official website of the",
910
"parent": {
1011
"name": "<Parent agency>",
1112
"shortname": "<Parent shortname>",

‎packages/usa-identifier/src/content/usa-identifier~multiple-logos.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"modifier": "",
33
"domain": "domain.gov",
4+
"lang": "en",
45
"masthead": {
56
"aria_label": "Agency identifier,,,",
67
"description": "Agency description,,,",
7-
"content": "An official website of the",
8+
"content_prefix": "An",
9+
"content": "official website of the",
810
"parent": {
911
"name": "<Parent agency>",
1012
"shortname": "<Parent shortname>",

‎packages/usa-identifier/src/content/usa-identifier~no-logos.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"masthead": {
66
"aria_label": "Agency identifier,,",
77
"description": "Agency description,,",
8-
"content": "An official website of the",
8+
"content_prefix": "An",
9+
"content": "official website of the",
910
"parent": {
1011
"name": "<Parent agency>",
1112
"shortname": "<Parent shortname>",

‎packages/usa-identifier/src/content/usa-identifier~taxpayer-disclaimer.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"masthead": {
66
"aria_label": "Agency identifier,,,,",
77
"description": "Agency description,,,,",
8-
"content": "An official website of the",
8+
"content_prefix": "An",
9+
"content": "official website of the",
910
"parent": {
1011
"name": "<Parent agency>",
1112
"shortname": "<Parent shortname>",

‎packages/usa-identifier/src/usa-identifier.twig‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
<section class="usa-identifier__identity" aria-label="{{ masthead.description }}">
3131
<p class="usa-identifier__identity-domain">{{ domain }}</p>
3232
<p class="usa-identifier__identity-disclaimer">
33+
{% if masthead.content_prefix %}
34+
<span aria-hidden="true">
35+
{{ masthead.content_prefix }}
36+
</span>
37+
{% endif %}
3338
{{ masthead.content }}
3439
<a href="{{ placeholder_link }}">{{ masthead.parent.name |e }}</a>
3540
{% if masthead.agency.url %}

0 commit comments

Comments
 (0)