An open source design system that's fully customizable and agent ready
TypeScript
fix(CommandPalette, MultiSelector): prevent iOS zoom on input focus (#1993)
Cindy Zhang063ffe2304a5
diff --git a/packages/core/src/CommandPalette/XDSCommandPaletteInput.tsx b/packages/core/src/CommandPalette/XDSCommandPaletteInput.tsxindex 69b01fe0a8..7081c00963 100644--- a/packages/core/src/CommandPalette/XDSCommandPaletteInput.tsx+++ b/packages/core/src/CommandPalette/XDSCommandPaletteInput.tsx@@ -27,7 +27,6 @@ import {typeScaleVars,spacingVars,typographyVars,- textSizeVars,} from '../theme/tokens.stylex';import {useCommandPaletteContext} from './CommandPaletteContext';@@ -74,7 +73,10 @@ const styles = stylex.create({backgroundColor: 'transparent',color: colorVars['--color-text-primary'],fontFamily: typographyVars['--font-family-body'],- fontSize: textSizeVars['--font-size-base'],+ fontSize: {+ default: typeScaleVars['--text-body-size'],+ '@media (pointer: coarse)': `max(1rem, ${typeScaleVars['--text-body-size']})`,+ },lineHeight: typeScaleVars['--text-body-leading'],padding: 0,'::placeholder': {diff --git a/packages/core/src/MultiSelector/XDSMultiSelector.tsx b/packages/core/src/MultiSelector/XDSMultiSelector.tsxindex 5e5b5b97ed..f580c32185 100644--- a/packages/core/src/MultiSelector/XDSMultiSelector.tsx+++ b/packages/core/src/MultiSelector/XDSMultiSelector.tsx@@ -240,7 +240,10 @@ const styles = stylex.create({borderRadius: radiusVars['--radius-element'],backgroundColor: colorVars['--color-background-surface'],fontFamily: typographyVars['--font-family-body'],- fontSize: typeScaleVars['--text-label-size'],+ fontSize: {+ default: typeScaleVars['--text-label-size'],+ '@media (pointer: coarse)': `max(1rem, ${typeScaleVars['--text-label-size']})`,+ },color: colorVars['--color-text-primary'],outline: {default: 'none',