An open source design system that's fully customizable and agent ready
TypeScript
fix: prevent iOS Safari auto-zoom on input focus (#1468)
Cindy Zhang22569f7e2c72
diff --git a/packages/core/src/DateInput/XDSDateInput.tsx b/packages/core/src/DateInput/XDSDateInput.tsxindex d6736ec1e7..3df7e82173 100644--- a/packages/core/src/DateInput/XDSDateInput.tsx+++ b/packages/core/src/DateInput/XDSDateInput.tsx@@ -81,7 +81,10 @@ const styles = stylex.create({borderStyle: 'none',padding: 0,fontFamily: typographyVars['--font-family-body'],- fontSize: typeScaleVars['--text-body-size'],+ fontSize: {+ default: typeScaleVars['--text-body-size'],+ '@media (pointer: coarse)': `max(1rem, ${typeScaleVars['--text-body-size']})`,+ },lineHeight: typeScaleVars['--text-body-leading'],color: colorVars['--color-text-primary'],backgroundColor: 'transparent',diff --git a/packages/core/src/NumberInput/XDSNumberInput.tsx b/packages/core/src/NumberInput/XDSNumberInput.tsxindex 92ab56f57d..14ffd4ef5d 100644--- a/packages/core/src/NumberInput/XDSNumberInput.tsx+++ b/packages/core/src/NumberInput/XDSNumberInput.tsx@@ -73,7 +73,10 @@ const styles = stylex.create({borderStyle: 'none',padding: 0,fontFamily: typographyVars['--font-family-body'],- fontSize: typeScaleVars['--text-body-size'],+ fontSize: {+ default: typeScaleVars['--text-body-size'],+ '@media (pointer: coarse)': `max(1rem, ${typeScaleVars['--text-body-size']})`,+ },lineHeight: typeScaleVars['--text-body-leading'],color: colorVars['--color-text-primary'],backgroundColor: 'transparent',diff --git a/packages/core/src/Selector/XDSSelector.tsx b/packages/core/src/Selector/XDSSelector.tsxindex a9a350c885..752c3d5cde 100644--- a/packages/core/src/Selector/XDSSelector.tsx+++ b/packages/core/src/Selector/XDSSelector.tsx@@ -81,7 +81,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']})`,+ },lineHeight: typeScaleVars['--text-label-leading'],color: colorVars['--color-text-primary'],cursor: 'pointer',diff --git a/packages/core/src/TextArea/XDSTextArea.tsx b/packages/core/src/TextArea/XDSTextArea.tsxindex 970271b3c6..66d59aa985 100644--- a/packages/core/src/TextArea/XDSTextArea.tsx+++ b/packages/core/src/TextArea/XDSTextArea.tsx@@ -57,7 +57,10 @@ const styles = stylex.create({borderStyle: 'none',padding: 0,fontFamily: typographyVars['--font-family-body'],- fontSize: typeScaleVars['--text-body-size'],+ fontSize: {+ default: typeScaleVars['--text-body-size'],+ '@media (pointer: coarse)': `max(1rem, ${typeScaleVars['--text-body-size']})`,+ },lineHeight: typeScaleVars['--text-body-leading'],color: colorVars['--color-text-primary'],backgroundColor: 'transparent',diff --git a/packages/core/src/TextInput/XDSTextInput.tsx b/packages/core/src/TextInput/XDSTextInput.tsxindex 7ce1686f54..e125bab2dd 100644--- a/packages/core/src/TextInput/XDSTextInput.tsx+++ b/packages/core/src/TextInput/XDSTextInput.tsx@@ -73,7 +73,10 @@ const styles = stylex.create({borderStyle: 'none',padding: 0,fontFamily: typographyVars['--font-family-body'],- fontSize: typeScaleVars['--text-body-size'],+ fontSize: {+ default: typeScaleVars['--text-body-size'],+ '@media (pointer: coarse)': `max(1rem, ${typeScaleVars['--text-body-size']})`,+ },lineHeight: typeScaleVars['--text-body-leading'],color: colorVars['--color-text-primary'],backgroundColor: 'transparent',diff --git a/packages/core/src/TimeInput/XDSTimeInput.tsx b/packages/core/src/TimeInput/XDSTimeInput.tsxindex 41ffc30d8d..6ac23b28fb 100644--- a/packages/core/src/TimeInput/XDSTimeInput.tsx+++ b/packages/core/src/TimeInput/XDSTimeInput.tsx@@ -73,7 +73,10 @@ const styles = stylex.create({borderStyle: 'none',padding: 0,fontFamily: typographyVars['--font-family-body'],- fontSize: typeScaleVars['--text-body-size'],+ fontSize: {+ default: typeScaleVars['--text-body-size'],+ '@media (pointer: coarse)': `max(1rem, ${typeScaleVars['--text-body-size']})`,+ },lineHeight: typeScaleVars['--text-body-leading'],color: colorVars['--color-text-primary'],backgroundColor: 'transparent',diff --git a/packages/core/src/Typeahead/XDSBaseTypeahead.tsx b/packages/core/src/Typeahead/XDSBaseTypeahead.tsxindex 7d3c20bda7..8c21d2f605 100644--- a/packages/core/src/Typeahead/XDSBaseTypeahead.tsx+++ b/packages/core/src/Typeahead/XDSBaseTypeahead.tsx@@ -166,7 +166,10 @@ const styles = stylex.create({borderStyle: 'none',padding: 0,fontFamily: typographyVars['--font-family-body'],- fontSize: typeScaleVars['--text-body-size'],+ fontSize: {+ default: typeScaleVars['--text-body-size'],+ '@media (pointer: coarse)': `max(1rem, ${typeScaleVars['--text-body-size']})`,+ },lineHeight: typeScaleVars['--text-body-leading'],color: colorVars['--color-text-primary'],backgroundColor: 'transparent',