Skip to content

Commit 9b3b614

Browse files
committed
fix(accessibility): fix missing alt for img
Error: An img element must have an alt attribute, except under certain conditions. Source: Nu Html Checker
1 parent bdbbf51 commit 9b3b614

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

_i18n/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ generic:
2727
page-not-found-short: "Page not found"
2828
page-not-found-long: "The requested page could not be found."
2929
accessibility:
30+
section-menu: "Section menu"
3031
lang-menu: "Language switcher"
3132
copy: "Copy link"
3233
copied: "Link copied!"

_includes/nav.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@
5151
</div>
5252
</div>
5353

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

5859
</div>

0 commit comments

Comments
 (0)