Skip to content

Commit

Permalink
refactor(accordion): refine transitionVariants
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Jun 21, 2024
1 parent fbc4dac commit 47f00e8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/components/accordion/src/accordion-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,8 @@ const AccordionItem = forwardRef<"button", AccordionItemProps>((props, ref) => {
}

const transitionVariants: Variants = {
...TRANSITION_VARIANTS.collapse,
exit: {
...TRANSITION_VARIANTS.collapse.exit,
overflowY: "hidden",
},
enter: {
...TRANSITION_VARIANTS.collapse.enter,
overflowY: "unset",
},
exit: {...TRANSITION_VARIANTS.collapse.exit, overflowY: "hidden"},
enter: {...TRANSITION_VARIANTS.collapse.enter, overflowY: "unset"},
};

return keepContentMounted ? (
Expand Down

0 comments on commit 47f00e8

Please sign in to comment.