From ff2a82d35844081d7d7e058ffff326a73704d8cc Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 12 Feb 2025 21:20:08 +0000 Subject: Animate dropdown menus (#7704) * animate dropdowns * rm unused animation --- src/components/Menu/index.web.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/components/Menu/index.web.tsx') diff --git a/src/components/Menu/index.web.tsx b/src/components/Menu/index.web.tsx index dc9116168..eb52895d4 100644 --- a/src/components/Menu/index.web.tsx +++ b/src/components/Menu/index.web.tsx @@ -4,6 +4,7 @@ import {msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import * as DropdownMenu from '@radix-ui/react-dropdown-menu' +import {useA11y} from '#/state/a11y' import {atoms as a, flatten, useTheme, web} from '#/alf' import * as Dialog from '#/components/Dialog' import {useInteractionState} from '#/components/hooks/useInteractionState' @@ -177,10 +178,15 @@ export function Outer({ style?: StyleProp }>) { const t = useTheme() + const {reduceMotionEnabled} = useA11y() return ( - + {children} -- cgit 1.4.1