diff --git a/src/design-system/components/atoms/option-list.tsx b/src/design-system/components/atoms/option-list.tsx index 791dc5099..aa2ac7505 100644 --- a/src/design-system/components/atoms/option-list.tsx +++ b/src/design-system/components/atoms/option-list.tsx @@ -131,37 +131,28 @@ const OptionMenuContent = forwardRef< }, ref, ) => ( - - {open && ( - - e.stopPropagation()} - > - - {children} - - - - )} - + + e.stopPropagation()} + > +
+ {children} +
+
+
), ); OptionMenuContent.displayName = OptionMenuPrimitive.Content.displayName; diff --git a/src/design-system/tailwind-base.js b/src/design-system/tailwind-base.js index 97799c38f..70d5007e7 100644 --- a/src/design-system/tailwind-base.js +++ b/src/design-system/tailwind-base.js @@ -113,6 +113,22 @@ const config = { from: { height: 'var(--radix-accordion-content-height)' }, to: { height: '0px' }, }, + slideDownAndFade: { + from: { opacity: '0', transform: 'translateY(-2px)' }, + to: { opacity: '1', transform: 'translateY(0)' }, + }, + slideLeftAndFade: { + from: { opacity: '0', transform: 'translateX(2px)' }, + to: { opacity: '1', transform: 'translateX(0)' }, + }, + slideUpAndFade: { + from: { opacity: '0', transform: 'translateY(-2px) scale(0.95)' }, + to: { opacity: '1', transform: 'translateY(0) scale(1)' }, + }, + slideRightAndFade: { + from: { opacity: '0', transform: 'translateX(-2px)' }, + to: { opacity: '1', transform: 'translateX(0)' }, + }, }, animation: { scaleIn: 'scaleIn 200ms ease', @@ -125,6 +141,13 @@ const config = { exitToRight: 'exitToRight 250ms ease', slideDown: 'slideDown 300ms cubic-bezier(0.87, 0, 0.13, 1)', slideUp: 'slideUp 300ms cubic-bezier(0.87, 0, 0.13, 1)', + slideDownAndFade: + 'slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)', + slideLeftAndFade: + 'slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)', + slideUpAndFade: 'slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)', + slideRightAndFade: + 'slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)', }, boxShadow: { button: '0px 1px 4px rgba(0, 0, 0, 0.05)',