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
  • Loading branch information
gillerr committed Dec 6, 2017
1 parent 21a8f57 commit 5be9a5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/assets/sass/components/mega-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
border-top: 1px solid $silver !important;
border-left: 1px solid $silver;
border-right: 1px solid $silver;
border-bottom: 0;
text-align: center;
color: $coal;
&:hover {
Expand All @@ -61,4 +62,4 @@
.nav-main.yamm .nav .dropdown-menu li:hover a {
padding-bottom: auto !important;
border-top: auto !important;
}
}
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" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top"></span></a>
<button class="yamm-close-bottom" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top"></span></button>
</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" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top" aria-hidden="true"></span></a>
<button class="yamm-close-bottom" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top" aria-hidden="true"></span></button>
</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" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top"></span></a>
<button class="yamm-close-bottom" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top"></span></button>
</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" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top"></span></a>
<button class="yamm-close-bottom" aria-label="{{t 'styleguide.close'}}"><span class="icon icon--top"></span></button>
</div>
</div>
</li>
Expand Down

0 comments on commit 5be9a5a

Please sign in to comment.