Skip to content

Commit b09c97a

Browse files
committed
Actually address accessibility issue
1 parent 8ee0e51 commit b09c97a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

partials/navigation.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{#if isSecondary}}{{else}}<a href="/" class="logo-circle" alt="Home"></a>{{/if}}
1+
{{#if isSecondary}}{{else}}<a href="/" class="logo-circle"><span class="visually-hidden">Home</span></a>{{/if}}
22
<ul class="nav">
33
{{#foreach navigation}}
44
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}">

src/css/layout/navigation.css

+12
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,15 @@ nav .menu-icon.close {
182182
width: 101.5%;
183183
}
184184
}
185+
186+
.visually-hidden {
187+
position: absolute;
188+
width: 1px;
189+
height: 1px;
190+
padding: 0;
191+
margin: -1px;
192+
overflow: hidden;
193+
clip: rect(0, 0, 0, 0);
194+
white-space: nowrap;
195+
border: 0;
196+
}

0 commit comments

Comments
 (0)