Skip to content

Commit

Permalink
feat(css): add white focus ring for footer links
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Aug 9, 2023
1 parent 7e8225b commit 7b8f853
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
4 changes: 2 additions & 2 deletions benefits/core/templates/core/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@
<div class="container">
<ul class="footer-links m-0 p-0 list-unstyled d-lg-flex gap-lg-4">
<li>
<a class="m-0 ps-5 ps-lg-0" href="{% url "core:help" %}">{% translate "Help" %}</a>
<a class="footer-link m-0 ps-5 ps-lg-0" href="{% url "core:help" %}">{% translate "Help" %}</a>
</li>
<li>
<a class="m-0 ps-5 ps-lg-0" href="https://cdt.ca.gov/privacy-policy/" target="_blank" rel="noopener noreferrer">{% translate "Privacy Policy" %}</a>
<a class="footer-link m-0 ps-5 ps-lg-0" href="https://cdt.ca.gov/privacy-policy/" target="_blank" rel="noopener noreferrer">{% translate "Privacy Policy" %}</a>
</li>
</ul>
</div>
Expand Down
19 changes: 13 additions & 6 deletions benefits/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
--error-color: #ea1010;
--selected-color: #562b97;
--focus-color: #fdb714;
--secondary-bg-color: #fafafa;
--error-color-rgb: 234, 16, 16;
--bs-danger: var(--error-color);
--bs-danger-rgb: var(--error-color-rgb);
Expand Down Expand Up @@ -146,8 +147,8 @@ a:hover:not(.btn) {
text-decoration: underline;
}

a:focus:not(.btn):not(.card),
a:focus-visible:not(.btn):not(.card) {
a:focus:not(.btn):not(.card):not(.footer-link),
a:focus-visible:not(.btn):not(.card):not(.footer-link) {
outline: 3px solid var(--focus-color) !important;
outline-offset: 2px !important;
}
Expand Down Expand Up @@ -277,7 +278,7 @@ footer .footer-links li {
width: var(--footer-link-width);
}

footer .footer-links li a {
footer .footer-links li a.footer-link {
color: var(--footer-link-color);
font-weight: var(--footer-link-font-weight);
font-size: var(--bs-body-font-size);
Expand All @@ -286,12 +287,18 @@ footer .footer-links li a {
line-height: 50px;
}

footer .footer-links li a:hover {
footer .footer-links li a.footer-link:hover {
color: var(--footer-link-hover-color);
}

footer .footer-links li a:active,
footer .footer-links li a:visited {
footer .footer-links li a.footer-link:focus,
footer .footer-links li a.footer-link:focus-visible {
outline: 3px solid var(--secondary-bg-color) !important;
outline-offset: 2px !important;
}

footer .footer-links li a.footer-link:active,
footer .footer-links li a.footer-link:visited {
color: var(--footer-link-visited-color);
}

Expand Down

0 comments on commit 7b8f853

Please sign in to comment.