Skip to content

Commit 33f76ab

Browse files
committed
feat: add animation to accordion content in Sidebar component
1 parent a8784a5 commit 33f76ab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/nimiq-vitepress-theme/src/layout/Sidebar.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ const { currentDocModule } = useCurrentModule()
1919
2020
const submoduleNavigatorOpen = ref(false)
2121
22-
// TODO Animate up and down accordion
23-
// TODO Animate up and down combobox
22+
// TODO Animate up and down navigation switcher
2423
2524
function isExternalLink(link: string) {
2625
return link.startsWith('http')
@@ -101,7 +100,7 @@ function openAccordionInitialState(items: NimiqVitepressSidebar['items'][number]
101100
transition="[color,transform]" :class="{ 'rotate--90': !open }"
102101
/>
103102
</CollapsibleTrigger>
104-
<CollapsibleContent of-hidden data-open:animate-slide-down data-closed:animate-slide-up relative>
103+
<CollapsibleContent un-animate-collapsible="reka-open:down reka-closed:up" of-hidden relative>
105104
<div absolute inset-y-0 left-12 w-2 bg-neutral-400 z-1 rounded-full />
106105
<SidebarItem v-for="subsubitem in subitem.items" :key="subsubitem.text" px-24 :item="subsubitem" />
107106
</CollapsibleContent>

0 commit comments

Comments
 (0)