Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(MoreMenu): use shadowVars token instead of hardcoded boxShadow (#746)

Cindy Zhang519e865e2c66
diff --git a/packages/core/src/MoreMenu/XDSMoreMenu.tsx b/packages/core/src/MoreMenu/XDSMoreMenu.tsx
index 9859a559fd..84a7d7c124 100644
--- a/packages/core/src/MoreMenu/XDSMoreMenu.tsx
+++ b/packages/core/src/MoreMenu/XDSMoreMenu.tsx
@@ -44,6 +44,7 @@ import {
easeVars,
typographyVars,
textSizeVars,
+ shadowVars,
} from '../theme/tokens.stylex';
import {xdsClassName, mergeProps} from '../utils';
@@ -59,7 +60,7 @@ const styles = stylex.create({
padding: spacingVars['--spacing-1'],
borderRadius: radiusVars['--radius-2'],
backgroundColor: colorVars['--color-surface'],
- boxShadow: `0 4px 12px ${colorVars['--color-shadow']}`,
+ boxShadow: shadowVars['--shadow-menu'],
opacity: 1,
transitionProperty: 'opacity',
transitionDuration: durationVars['--duration-fast'],