Skip to content

Commit

Permalink
chore(Accordion): add transition to trailing icon
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jul 5, 2023
1 parent a79c165 commit 3b432fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/runtime/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ const accordion = {
base: '',
size: 'text-sm',
color: 'text-gray-500 dark:text-gray-400',
padding: 'pt-1.5 pb-3'
padding: 'pt-1.5 pb-3',
icon: 'ms-auto transform transition-transform duration-200'
},
transition: {
enterActiveClass: 'overflow-hidden transition-[height] duration-200 ease-out',
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/components/elements/Accordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<template #trailing>
<UIcon
:name="!open ? openIcon : closeIcon ? closeIcon : openIcon"
class="ms-auto transform"
:class="[
open && !closeIcon ? '-rotate-180' : '',
uiButton.icon.size[item.size || uiButton.default.size]
uiButton.icon.size[item.size || uiButton.default.size],
ui.item.icon
]"
/>
</template>
Expand Down

1 comment on commit 3b432fd

@vercel
Copy link

@vercel vercel bot commented on 3b432fd Jul 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxtlabs.vercel.app
ui-nuxtlabs.vercel.app
ui.nuxtlabs.com

Please sign in to comment.