forked from mmistakes/minimal-mistakes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve accessibility of navigation menu button
Add `type` and label text. Fixes mmistakes#1099
- Loading branch information
Showing
4 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
<div class="masthead"> | ||
<div class="masthead__inner-wrap"> | ||
<div class="masthead__menu"> | ||
<nav id="site-nav" class="greedy-nav"> | ||
<a class="site-title" href="{{ '/' | absolute_url }}">{{ site.title }}</a> | ||
<ul class="visible-links"> | ||
{% for link in site.data.navigation.main %} | ||
{% if link.url contains 'http' %} | ||
{% assign domain = '' %} | ||
{% else %} | ||
{% assign domain = site.url | append: site.baseurl %} | ||
{% endif %} | ||
<li class="masthead__menu-item"><a href="{{ domain }}{{ link.url }}">{{ link.title }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
<button><div class="navicon"></div></button> | ||
<ul class="hidden-links hidden"></ul> | ||
</nav> | ||
<div class="masthead__inner-wrap"> | ||
<div class="masthead__menu"> | ||
<nav id="site-nav" class="greedy-nav"> | ||
<a class="site-title" href="{{ '/' | absolute_url }}">{{ site.title }}</a> | ||
<ul class="visible-links"> | ||
{% for link in site.data.navigation.main %} | ||
{% if link.url contains 'http' %} | ||
{% assign domain = '' %} | ||
{% else %} | ||
{% assign domain = site.url | append: site.baseurl %} | ||
{% endif %} | ||
<li class="masthead__menu-item"><a href="{{ domain }}{{ link.url }}">{{ link.title }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
<button type="button"> | ||
<span class="visually-hidden">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle Menu" }}</span> | ||
<div class="navicon"></div> | ||
</button> | ||
<ul class="hidden-links hidden"></ul> | ||
</nav> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |