Visitar URL original
USWDS - Identifier: Update "An official website" screen reader text by amyleadem · Pull Request #5491 · uswds/uswds · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/usa-identifier/src/content/usa-identifier.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"masthead": {
"aria_label": "Agency identifier,",
"description": "Agency description,",
"content": "An official website of the",
"content_prefix": "An",
"content": "official website of the",
"parent": {
"name": "<Parent agency>",
"shortname": "<Parent shortname>",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"modifier": "",
"domain": "domain.gov",
"lang": "en",
"masthead": {
"aria_label": "Agency identifier,,,",
"description": "Agency description,,,",
"content": "An official website of the",
"content_prefix": "An",
"content": "official website of the",
"parent": {
"name": "<Parent agency>",
"shortname": "<Parent shortname>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"masthead": {
"aria_label": "Agency identifier,,",
"description": "Agency description,,",
"content": "An official website of the",
"content_prefix": "An",
"content": "official website of the",
"parent": {
"name": "<Parent agency>",
"shortname": "<Parent shortname>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"masthead": {
"aria_label": "Agency identifier,,,,",
"description": "Agency description,,,,",
"content": "An official website of the",
"content_prefix": "An",
"content": "official website of the",
"parent": {
"name": "<Parent agency>",
"shortname": "<Parent shortname>",
Expand Down
5 changes: 5 additions & 0 deletions packages/usa-identifier/src/usa-identifier.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
<section class="usa-identifier__identity" aria-label="{{ masthead.description }}">
<p class="usa-identifier__identity-domain">{{ domain }}</p>
<p class="usa-identifier__identity-disclaimer">
{% if masthead.content_prefix %}
<span aria-hidden="true">
{{ masthead.content_prefix }}
</span>
{% endif %}
{{ masthead.content }}
<a href="{{ placeholder_link }}">{{ masthead.parent.name |e }}</a>
{% if masthead.agency.url %}
Expand Down