Skip to content

Commit

Permalink
Actually address accessibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtiger committed Nov 19, 2024
1 parent 8ee0e51 commit b09c97a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion partials/navigation.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if isSecondary}}{{else}}<a href="/" class="logo-circle" alt="Home"></a>{{/if}}
{{#if isSecondary}}{{else}}<a href="/" class="logo-circle"><span class="visually-hidden">Home</span></a>{{/if}}
<ul class="nav">
{{#foreach navigation}}
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}">
Expand Down
12 changes: 12 additions & 0 deletions src/css/layout/navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,15 @@ nav .menu-icon.close {
width: 101.5%;
}
}

.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

0 comments on commit b09c97a

Please sign in to comment.