Skip to content

Commit

Permalink
Add empty alt text to logo <img>
Browse files Browse the repository at this point in the history
The logo is purely decorative, and is described by the proceeding `<h1>` tag (i.e., "WebFinger"). Setting `alt` to an empty string, so screen readers ignore the `<img>`, as recommended by https://dequeuniversity.com/rules/axe/4.7/image-alt.
  • Loading branch information
veyndan authored and willnorris committed Aug 7, 2023
1 parent 376a607 commit 148123c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div>
<div class="site-title">
<a href="/">
<img src="/images/WebFinger.svg" id="logo" />
<img src="/images/WebFinger.svg" id="logo" alt=""/>
<h1>WebFinger</h1>
</a>
<p id="tagline">simple discovery for the web</p>
Expand Down

0 comments on commit 148123c

Please sign in to comment.