Skip to content

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

TypeScript

fix(CommandPalette): use semantic typeScaleVars for item font size (#2784)

Cindy Zhang2517ed15fc0b
diff --git a/packages/core/src/CommandPalette/XDSCommandPaletteItem.tsx b/packages/core/src/CommandPalette/XDSCommandPaletteItem.tsx
index 84b8fce84f..bf9ec18f0a 100644
--- a/packages/core/src/CommandPalette/XDSCommandPaletteItem.tsx
+++ b/packages/core/src/CommandPalette/XDSCommandPaletteItem.tsx
@@ -20,7 +20,7 @@ import {
spacingVars,
radiusVars,
typographyVars,
- textSizeVars,
+ typeScaleVars,
} from '../theme/tokens.stylex';
import {useCommandPaletteContext} from './CommandPaletteContext';
@@ -36,7 +36,7 @@ const styles = stylex.create({
paddingBlock: spacingVars['--spacing-2'],
borderRadius: radiusVars['--radius-inner'],
fontFamily: typographyVars['--font-family-body'],
- fontSize: textSizeVars['--font-size-base'],
+ fontSize: typeScaleVars['--text-label-size'],
color: colorVars['--color-text-primary'],
backgroundColor: 'transparent',
border: 'none',