An open source design system that's fully customizable and agent ready
TypeScript
fix(inputs): add border-box and reset inner input borders (#151)
Cindy Zhang02f6835c77b7
diff --git a/packages/core/src/DateInput/XDSDateInput.tsx b/packages/core/src/DateInput/XDSDateInput.tsxindex 8cfb8e5cc7..7773761664 100644--- a/packages/core/src/DateInput/XDSDateInput.tsx+++ b/packages/core/src/DateInput/XDSDateInput.tsx@@ -42,6 +42,7 @@ import {parseDateInput, formatDisplayDate} from '../utils';const styles = stylex.create({wrapper: {+ boxSizing: 'border-box',position: 'relative',display: 'flex',alignItems: 'center',diff --git a/packages/core/src/NumberInput/XDSNumberInput.tsx b/packages/core/src/NumberInput/XDSNumberInput.tsxindex 264b919856..70cb799779 100644--- a/packages/core/src/NumberInput/XDSNumberInput.tsx+++ b/packages/core/src/NumberInput/XDSNumberInput.tsx@@ -42,6 +42,7 @@ import {XDSIcon, type XDSIconType} from '../Icon';const styles = stylex.create({wrapper: {+ boxSizing: 'border-box',position: 'relative',zIndex: 1,display: 'flex',@@ -77,14 +78,15 @@ const styles = stylex.create({display: 'block',flex: 1,minWidth: 0,- border: 0,+ borderWidth: 0,+ borderStyle: 'none',padding: 0,fontFamily: typographyVars['--font-body'],fontSize: textSizeVars['--text-base'],lineHeight: lineHeightVars['--leading-base'],color: colorVars['--color-text-primary'],backgroundColor: 'transparent',- outline: 0,+ outline: 'none','::placeholder': {color: colorVars['--color-text-placeholder'],},diff --git a/packages/core/src/TextArea/XDSTextArea.tsx b/packages/core/src/TextArea/XDSTextArea.tsxindex 42c34c5838..5b5a1ea025 100644--- a/packages/core/src/TextArea/XDSTextArea.tsx+++ b/packages/core/src/TextArea/XDSTextArea.tsx@@ -32,6 +32,7 @@ import {XDSIcon, type XDSIconType} from '../Icon';const styles = stylex.create({wrapper: {+ boxSizing: 'border-box',position: 'relative',zIndex: 1,display: 'flex',@@ -67,14 +68,15 @@ const styles = stylex.create({display: 'block',flex: 1,minWidth: 0,- border: 0,+ borderWidth: 0,+ borderStyle: 'none',padding: 0,fontFamily: typographyVars['--font-body'],fontSize: textSizeVars['--text-base'],lineHeight: lineHeightVars['--leading-base'],color: colorVars['--color-text-primary'],backgroundColor: 'transparent',- outline: 0,+ outline: 'none','::placeholder': {color: colorVars['--color-text-placeholder'],},diff --git a/packages/core/src/TextInput/XDSTextInput.tsx b/packages/core/src/TextInput/XDSTextInput.tsxindex 5999af0c68..0f089265ed 100644--- a/packages/core/src/TextInput/XDSTextInput.tsx+++ b/packages/core/src/TextInput/XDSTextInput.tsx@@ -33,6 +33,7 @@ import {XDSIcon, type XDSIconType} from '../Icon';const styles = stylex.create({wrapper: {+ boxSizing: 'border-box',position: 'relative',zIndex: 1,display: 'flex',@@ -68,14 +69,15 @@ const styles = stylex.create({display: 'block',flex: 1,minWidth: 0,- border: 0,+ borderWidth: 0,+ borderStyle: 'none',padding: 0,fontFamily: typographyVars['--font-body'],fontSize: textSizeVars['--text-base'],lineHeight: lineHeightVars['--leading-base'],color: colorVars['--color-text-primary'],backgroundColor: 'transparent',- outline: 0,+ outline: 'none','::placeholder': {color: colorVars['--color-text-placeholder'],},diff --git a/packages/core/src/TimeInput/XDSTimeInput.tsx b/packages/core/src/TimeInput/XDSTimeInput.tsxindex 512ea3371a..44076bbf82 100644--- a/packages/core/src/TimeInput/XDSTimeInput.tsx+++ b/packages/core/src/TimeInput/XDSTimeInput.tsx@@ -52,6 +52,7 @@ import {const styles = stylex.create({wrapper: {+ boxSizing: 'border-box',position: 'relative',display: 'flex',alignItems: 'center',