Skip to content

Commit 3647bd4

Browse files
committed
feat: add conditional class bindings for sidebar dropdown
1 parent afc3e0b commit 3647bd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adminforth/spa/src/App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
">{{ item.label }}</div>
9696
<li v-else-if="item.children" class="af-sidebar-expand-container">
9797
<button @click="clickOnMenuItem(i)" type="button" class="af-sidebar-expand-button flex items-center w-full p-2 text-base text-lightSidebarText rounded-default transition duration-75 group hover:bg-lightSidebarItemHover hover:text-lightSidebarTextHover dark:text-darkSidebarText dark:hover:bg-darkSidebarHover dark:hover:text-darkSidebarTextHover"
98+
:class="opened.includes(i) ? 'af-sidebar-dropdown-expanded' : 'af-sidebar-dropdown-collapsed'"
9899
:aria-controls="`dropdown-example${i}`"
99100
:data-collapse-toggle="`dropdown-example${i}`"
100101
>

0 commit comments

Comments
 (0)