Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
fix(megaMenu): add aria-label on trailing closing button
Browse files Browse the repository at this point in the history
  • Loading branch information
gillerr committed Dec 5, 2017
1 parent d295e75 commit f68e576
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/views/layouts/includes/f-menu-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h4><a href="{{#if @root.baseurl}}{{@root.baseurl}}/{{/if}}../{{data 'locale'}}/
{{/modulo}}
{{/each}}
</div>
<a href="#" class="yamm-close-bottom" role="menuitem" tabindex="-1"><span class="icon icon--top"></span></a>
<a href="#" class="yamm-close-bottom" role="menuitem" tabindex="-1" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top"></span></a>
</div>
</div>
</li>
6 changes: 3 additions & 3 deletions src/views/layouts/includes/f-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1><a href="{{#if baseurl}}{{baseurl}}/{{/if}}../{{data 'locale'}}/">{{t 'style
</nav>
</li>
</ul>
<a href="#" class="yamm-close-bottom"><span class="icon icon--top" aria-hidden="true"></span></a>
<a href="#" class="yamm-close-bottom" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top" aria-hidden="true"></span></a>
</nav>

</div>
Expand Down Expand Up @@ -101,7 +101,7 @@ <h4><a href="{{#if @root.baseurl}}{{@root.baseurl}}/{{/if}}../{{data 'locale'}}/
{{/modulo}}
{{/each}}
</div>
<a href="#" class="yamm-close-bottom" role="menuitem" tabindex="-1"><span class="icon icon--top"></span></a>
<a href="#" class="yamm-close-bottom" role="menuitem" tabindex="-1" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top"></span></a>
</div>
</div>
</li>
Expand Down Expand Up @@ -136,7 +136,7 @@ <h4><a href="{{#if @root.baseurl}}{{@root.baseurl}}/{{/if}}../{{data 'locale'}}/
{{/modulo}}
{{/each}}
</div>
<a href="#" class="yamm-close-bottom" role="menuitem" tabindex="-1"><span class="icon icon--top"></span></a>
<a href="#" class="yamm-close-bottom" role="menuitem" tabindex="-1" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top"></span></a>
</div>
</div>
</li>
Expand Down

0 comments on commit f68e576

Please sign in to comment.