From 68698effe806de247b7e6a4deb7d781891f3db86 Mon Sep 17 00:00:00 2001 From: Jay X Anaya Date: Thu, 7 Nov 2024 13:11:36 -0500 Subject: [PATCH] a11y feedback implemented, updated from eval platform design. --- assets/css/public/index.scss | 2 +- assets/css/shared/_uswds-overrides.scss | 20 +- lib/web/templates/layout/_govheader.html.eex | 208 +++++++++++-------- 3 files changed, 138 insertions(+), 92 deletions(-) diff --git a/assets/css/public/index.scss b/assets/css/public/index.scss index 3c0f0be84..1648ae61f 100644 --- a/assets/css/public/index.scss +++ b/assets/css/public/index.scss @@ -18,7 +18,7 @@ @import "misc"; html, body { - background-color: #fafafa; + background-color: #fff; } // TODO: Move these to appropriate files diff --git a/assets/css/shared/_uswds-overrides.scss b/assets/css/shared/_uswds-overrides.scss index 3f913f2b7..b40d94f2e 100644 --- a/assets/css/shared/_uswds-overrides.scss +++ b/assets/css/shared/_uswds-overrides.scss @@ -46,7 +46,7 @@ @media (forced-colors:active) { .usa-combo-box--pristine .usa-combo-box__clear-input { - background: url(/images/uswds/img/usa-icons/close.svg) no-repeat 50%/contain; + background: url(/images/close.svg) no-repeat 50%/contain; display: inline-block; height: 1rem; height: 1.5rem; @@ -59,13 +59,13 @@ .usa-combo-box--pristine .usa-combo-box__clear-input { background: none; background-color: ButtonText; - mask: url(/images/uswds/img/usa-icons/close.svg) no-repeat center/contain + mask: url(/images/close.svg) no-repeat center/contain } } } .usa-combo-box__clear-input { - background-image: url(/images/uswds/img/usa-icons/close.svg), linear-gradient(transparent, transparent); + background-image: url(/images/close.svg), linear-gradient(transparent, transparent); background-repeat: no-repeat; display: none; right: calc(2.5em + 3px) @@ -73,7 +73,7 @@ @media (max-width:39.99em) { .usa-banner__button[aria-expanded=true]:after { - background: url(/images/uswds/img/usa-icons/close.svg) no-repeat 50%/contain; + background: url(/images/close.svg) no-repeat 50%/contain; content: ""; display: inline-block; height: 3rem; @@ -86,7 +86,7 @@ .usa-banner__button[aria-expanded=true]:after { background: none; background-color: #005ea2; - mask: url(/images/uswds/img/usa-icons/close.svg) no-repeat center/contain + mask: url(/images/close.svg) no-repeat center/contain } } } @@ -94,7 +94,7 @@ @media (forced-colors:active) { .usa-nav__close:before { - background: url(/images/uswds/img/usa-icons/close.svg) no-repeat 50%/contain; + background: url(/images/close.svg) no-repeat 50%/contain; content: ""; display: inline-block; height: 1.25rem; @@ -107,7 +107,7 @@ .usa-nav__close:before { background: none; background-color: ButtonText; - mask: url(/images/uswds/img/usa-icons/close.svg) no-repeat center/contain + mask: url(/images/close.svg) no-repeat center/contain } } @@ -186,7 +186,7 @@ Add a list of changed settings in the form $setting: value. .usa-header { - background-color: #fafafa; + background-color: #fff; } @@ -194,4 +194,8 @@ Add a list of changed settings in the form $setting: value. .desktop\:flex-row { flex-direction: row; } +} + +.font-sans-xs { + font-size: .87rem } \ No newline at end of file diff --git a/lib/web/templates/layout/_govheader.html.eex b/lib/web/templates/layout/_govheader.html.eex index 8feddedb2..9710862ec 100644 --- a/lib/web/templates/layout/_govheader.html.eex +++ b/lib/web/templates/layout/_govheader.html.eex @@ -1,105 +1,147 @@ -Skip to main content -
-
-
-
-
-
-
- " alt="U.S. flag"> -
-
-

An official website of the United States government

- -
- -
-
-
-
-
- " alt="Dot gov"> -
-

- Official websites use .gov
A - .gov website belongs to an official government - organization in the United States. -

-
-
-
- " alt="Https"> -
-

- Secure .gov websites use HTTPS
A - lock ( - - - - - ) or https:// means you’ve safely connected to - the .gov website. Share sensitive information only on official, - secure websites. -

-
-
-
-
+
+
+
+
+
+ " + alt="" + /> +
+ + +
+
+
+
+
+ " + role="img" + alt="" + aria-hidden="true" + /> +
+

+ Official websites use .gov
A + .gov website belongs to an official government + organization in the United States. +

-
+
+ " + role="img" + alt="" + aria-hidden="true" + /> +
+

+ Secure .gov websites use HTTPS
A + lock ( + + + + + ) or https:// means you’ve safely connected to + the .gov website. Share sensitive information only on official, + secure websites. +

+
+
+
+
- +