Skip to content

Commit

Permalink
Merge pull request #106 from swiss/bugfix/navigation-v2
Browse files Browse the repository at this point in the history
fix(navigation-v2): relocate back button
  • Loading branch information
satefan authored Sep 27, 2024
2 parents 4ad931a + 54732da commit acd769a
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions app/components/ch/sections/MobileMenuV2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,25 @@
:id="`mobile-menu-v2-header-title-container__level-${index}`"
:class="`mobile-menu-v2-header-title-container__level-${index}`"
>
<btn
class="mobile-menu-v2__back-button"
@emitClick="showLevel(currentLevel - 1)"
icon="ArrowLeft"
iconPos="left"
label="Zurück"
size="base"
variant="bare"
ariaLabel="Navigiere zurück"
:class="index > 0 ? 'mobile-menu-v2__back-button--is-visible' : ''"
/>
<h2 class="top-header__menu-v2-title" :key="`menu-title-${index}`">
<span>
{{ title }}
</span>
</h2>
</div>
<btn
class="mobile-menu-v2__back-button"
@emitClick="showLevel(currentLevel - 1)"
icon="ArrowLeft"
iconPos="left"
label="Zurück"
size="base"
variant="bare"
ariaLabel="Navigiere zurück"
:class="
currentLevel > 0 ? 'mobile-menu-v2__back-button--is-visible' : ''
"
/>
<div class="mobile-menu-v2__close-button">
<SvgIcon
size="3xl"
Expand Down

0 comments on commit acd769a

Please sign in to comment.