This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #313 from fourkitchens/291--nav-accessibility
291: move icon inside navigation
- Loading branch information
Showing
2 changed files
with
27 additions
and
28 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
36 changes: 19 additions & 17 deletions
36
components/_patterns/02-molecules/menus/main-menu/main-menu.twig
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,23 @@ | ||
{{ attach_library('emulsify/main-menu') }} | ||
|
||
<a href="#" id="toggle-expand" class="toggle-expand"> | ||
<span class="toggle-expand__open"> | ||
{% include "@atoms/04-images/icons/_icon.twig" with { | ||
icon_base_class: "icon", | ||
icon_blockname: "toggle-expand", | ||
icon_name: "bars", | ||
<nav > | ||
<a href="#" id="toggle-expand" class="toggle-expand"> | ||
<span class="toggle-expand__open"> | ||
{% include "@atoms/04-images/icons/_icon.twig" with { | ||
icon_base_class: "icon", | ||
icon_blockname: "toggle-expand", | ||
icon_name: "bars", | ||
} %} | ||
<span class="toggle-expand__text">Main Menu</span> | ||
</span> | ||
<span class="toggle-expand__close"> | ||
<span class="toggle-expand__text">Close</span> | ||
</span> | ||
</a> | ||
<div id="main-nav" class="main-nav"> | ||
{% include "@molecules/menus/_menu.twig" with { | ||
menu_class: "main-menu", | ||
items: menu_items, | ||
} %} | ||
<span class="toggle-expand__text">Main Menu</span> | ||
</span> | ||
<span class="toggle-expand__close"> | ||
<span class="toggle-expand__text">Close</span> | ||
</span> | ||
</a> | ||
<nav id="main-nav" class="main-nav"> | ||
{% include "@molecules/menus/_menu.twig" with { | ||
menu_class: "main-menu", | ||
items: menu_items, | ||
} %} | ||
</div> | ||
</nav> |