Respect custom css-class for background color in mobile nav as well

This commit is contained in:
Björn Fromme
2022-03-17 09:29:40 +01:00
parent b4651e0a0d
commit d8fe62bc61
@@ -100,7 +100,7 @@
<f:then>
<li data-controller="collapse"
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">
<div class="flex items-center justify-between px-4 py-2 text-white {f:if(condition: navitem.data.tx_eptheme_navitemclass, then: navitem.data.tx_eptheme_navitemclass, else: 'bg-ep-primary')}">
<a href="{navitem.link}"
class="uppercase text-xl flex-1"
title="{navitem.title}">
@@ -122,7 +122,7 @@
<f:else>
<li>
<a href="{navitem.link}"
class="block px-4 py-2 bg-ep-primary text-white uppercase text-xl"
class="block px-4 py-2 text-white uppercase text-xl {f:if(condition: navitem.data.tx_eptheme_navitemclass, then: navitem.data.tx_eptheme_navitemclass, else: 'bg-ep-primary')}"
title="{navitem.title}">
{navitem.title}
</a>