Skip to content

Commit

Permalink
fix: improve mobile menu button interaction & a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSlug committed Jun 1, 2022
1 parent 01e4e34 commit b83fc49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_includes/partials/components/menu.njk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<nav class="menu" aria-label="menu">
<button class="menu__button" aria-label="menu" aria-expanded="false" aria-controls="menu-list">
<button class="menu__button" aria-label="menu" aria-expanded="false" aria-controls="menu-list" type="button">
{% svg_sprite "icon-menu" %}
<span class="menu__name">{{ translations[lang].menu }}</span>
</button>
Expand Down
1 change: 1 addition & 0 deletions src/assets/styles/components/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
background-color: var(--fl-buttonBgColor, inherit);
border: none;
color: var(--fl-buttonFgColor, currentColor);
cursor: pointer;
display: flex;
height: 2rem;
justify-content: center;
Expand Down

0 comments on commit b83fc49

Please sign in to comment.