add support for data-wa-layout-navigation-toggle

This commit is contained in:
konnorrogers
2023-10-02 16:14:23 -04:00
parent 27aaa82a9c
commit b017c4df1e
2 changed files with 35 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<wa-layout main-id="main-content" class="wa-theme-light">
<header slot="header">
<wa-icon-button name="list" style="font-size: 1.5rem" onclick="this.closest('wa-layout').showNavigation()"></wa-icon>
<wa-icon-button name="list" style="font-size: 1.5rem" data-wa-layout-toggle-navigation></wa-icon>
</header>
<wa-button href="#" variant="text" style="padding: 0 0.4rem" class="wa-button--logo wa-button--stretch wa-button--muted" size="large" slot="navigation-header">
<wa-icon name="music-note" slot="prefix" style="font-size: 2rem;"></wa-icon>