Don't collapse subitems in active path of mobile navigation

This commit is contained in:
Björn Fromme
2022-03-15 11:59:01 +01:00
parent bc9f590340
commit 972acbe4e9
@@ -95,7 +95,7 @@
<f:if condition="{navitem.children}">
<f:then>
<li data-controller="collapse"
data-collapse-collapsed-value="true">
data-collapse-collapsed-value="{f:if(condition: navitem.active, then: 'false', else: 'true')}">
<div class="flex items-center justify-between px-4 py-2 bg-ep-primary text-white">
<a href="{navitem.link}"
class="uppercase text-xl flex-1"
@@ -136,7 +136,7 @@
<f:then>
<li class="py-2"
data-controller="collapse"
data-collapse-collapsed-value="true">
data-collapse-collapsed-value="{f:if(condition: subitem.active, then: 'false', else: 'true')}">
<div class="flex items-center justify-between">
<a href="{subitem.link}"
class="flex-1"