Skip to content

Commit

Permalink
fix(accessibility): fix missing alt for img
Browse files Browse the repository at this point in the history
Error: An img element must have an alt attribute, except under certain conditions.
Source: Nu Html Checker
  • Loading branch information
Rotzbua committed Jan 4, 2024
1 parent 7790f08 commit d1f2b3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions _i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ generic:
page-not-found-short: "Page not found"
page-not-found-long: "The requested page could not be found."
accessibility:
section-menu: "Section menu"
lang-menu: "Language switcher"
copy: "Copy link"
copied: "Link copied!"
Expand Down
5 changes: 3 additions & 2 deletions _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@
</div>
</div>

<button class="navbar-toggler" onclick="openNav()"><img
src="{{ site.baseurl_root }}/assets/images/icons/burger.svg" /></button>
<button class="navbar-toggler" onclick="openNav()">
<img src="{{ site.baseurl_root }}/assets/images/icons/burger.svg" alt="{% t generic.accessibility.section-menu %}">
</button>
</div>

</div>
Expand Down

0 comments on commit d1f2b3b

Please sign in to comment.