mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 23:11:43 +01:00
fix(Accordion): solve the shift between buttons when they are opened (#379)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b78fcf91a4
commit
eaf0043da6
@@ -259,12 +259,12 @@ const dropdown = {
|
||||
}
|
||||
|
||||
const accordion = {
|
||||
wrapper: 'w-full flex flex-col gap-y-2',
|
||||
wrapper: 'w-full flex flex-col',
|
||||
item: {
|
||||
base: '',
|
||||
size: 'text-sm',
|
||||
color: 'text-gray-500 dark:text-gray-400',
|
||||
padding: 'py-2'
|
||||
padding: 'pt-1.5 pb-3'
|
||||
},
|
||||
transition: {
|
||||
enterActiveClass: 'overflow-hidden transition-[height] duration-200 ease-out',
|
||||
@@ -273,6 +273,7 @@ const accordion = {
|
||||
default: {
|
||||
openIcon: 'i-heroicons-chevron-down-20-solid',
|
||||
closeIcon: '',
|
||||
class: 'mb-1.5 w-full',
|
||||
variant: 'soft'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user