Skip to content

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

TypeScript

fix(AppShell): replace hardcoded px values in autoMobileTopBar with spacing tokens (#667)

Cindy Zhang424df96fab20
diff --git a/packages/core/src/AppShell/XDSAppShell.tsx b/packages/core/src/AppShell/XDSAppShell.tsx
index 151af29800..2d88cd672c 100644
--- a/packages/core/src/AppShell/XDSAppShell.tsx
+++ b/packages/core/src/AppShell/XDSAppShell.tsx
@@ -364,8 +364,8 @@ const styles = stylex.create({
autoMobileTopBar: {
display: 'flex',
alignItems: 'center',
- height: 48,
- paddingInline: 8,
+ height: spacingVars['--spacing-12'],
+ paddingInline: spacingVars['--spacing-2'],
},
// Sticky header for auto height mode
headerSticky: {