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

Commit

Permalink
fix(megaMenu): use a button instead of a link with `role="menuitem"…
Browse files Browse the repository at this point in the history
…` for leading close button

#552
  • Loading branch information
gillerr committed Dec 6, 2017
1 parent 520ad84 commit 4481749
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 @@ -3,7 +3,7 @@
<div class="dropdown-menu" role="menu">
<div class="yamm-content container-fluid">
<div class="row">
<div class="col-sm-12"><a href="#" class="yamm-close icon icon--after icon--close pull-right" role="menuitem" tabindex="-1">{{t 'styleguide.close'}}</a></div>
<div class="col-sm-12"><button class="yamm-close btn btn-link icon icon--after icon--close pull-right">{{t 'styleguide.close'}}</button></div>
</div>
<div class="row">
{{#each items}}
Expand Down
4 changes: 2 additions & 2 deletions src/views/layouts/includes/f-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h2 class="sr-only">{{t 'styleguide.global-search.title'}}</h2>
<div class="dropdown-menu" role="menu">
<div class="yamm-content container-fluid">
<div class="row">
<div class="col-sm-12"><a href="#" class="yamm-close icon icon--after icon--close pull-right" role="menuitem" tabindex="-1">{{t 'styleguide.close'}}</a></div>
<div class="col-sm-12"><button class="yamm-close btn btn-link icon icon--after icon--close pull-right">{{t 'styleguide.close'}}</button></div>
</div>
<div class="row">
{{#each views.docs.items}}
Expand Down Expand Up @@ -115,7 +115,7 @@ <h4><a href="{{#if @root.baseurl}}{{@root.baseurl}}/{{/if}}../{{data 'locale'}}/
<div class="dropdown-menu" role="menu">
<div class="yamm-content container-fluid">
<div class="row">
<div class="col-sm-12"><a href="#" class="yamm-close icon icon--after icon--close pull-right" role="menuitem" tabindex="-1">{{t 'styleguide.close'}}</a></div>
<div class="col-sm-12"><button class="yamm-close btn btn-link icon icon--after icon--close pull-right">{{t 'styleguide.close'}}</button></div>
</div>
<div class="row">
{{#each views.pages.items}}
Expand Down

0 comments on commit 4481749

Please sign in to comment.