Skip to content

Commit

Permalink
Fix header link text mismatch for accessibility (#412)
Browse files Browse the repository at this point in the history
* update typos

* fix: Visible label and accessible name do not match
  • Loading branch information
LDubya authored Jan 22, 2024
1 parent c145514 commit 890bd5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/components/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<button class="usa-menu-btn">Menu</button>
<div class="usa-logo site-logo" id="logo">
<em class="usa-logo-text">
<a href="/" accesskey="1" title="Home" aria-label="Home">{{ header.title | default: site.title }}</a>
{% assign header_link_text = header.title | default: site.title %}
<a href="/" accesskey="1" title="Home" aria-label="{{ header_link_text }}">{{ header_link_text }}</a>
</em>
</div>
</div>
Expand Down

0 comments on commit 890bd5f

Please sign in to comment.