Skip to content

Commit 819fc62

Browse files
Merge pull request #299 from devforth/AdminForth/756
feat: add conditional class bindings for sidebar dropdown
2 parents cf09549 + 3647bd4 commit 819fc62

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)