Skip to content

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

TypeScript

fix: bug bash CSS fixes — Badge height, Token padding, Card borders, DateInput autocomplete (#519)

Cindy Zhang588f301daa07
diff --git a/packages/core/src/Badge/XDSBadge.tsx b/packages/core/src/Badge/XDSBadge.tsx
index 1149db87f3..739d04c3e7 100644
--- a/packages/core/src/Badge/XDSBadge.tsx
+++ b/packages/core/src/Badge/XDSBadge.tsx
@@ -35,18 +35,18 @@ const styles = stylex.create({
alignItems: 'center',
justifyContent: 'center',
gap: spacingVars['--spacing-1'],
- paddingBlock: spacingVars['--spacing-1'],
+ height: '20px',
+ paddingBlock: 0,
paddingInline: spacingVars['--spacing-2'],
borderRadius: radiusVars['--radius-rounded'],
fontFamily: 'inherit',
fontSize: textSizeVars['--text-xsm'],
- lineHeight: lineHeightVars['--leading-snug'],
+ lineHeight: lineHeightVars['--leading-tight'],
fontWeight: fontWeightVars['--font-weight-medium'],
letterSpacing: '-0.24px',
whiteSpace: 'nowrap',
},
dot: {
- paddingBlock: spacingVars['--spacing-1'],
paddingInline: spacingVars['--spacing-1'],
},
});
diff --git a/packages/core/src/Card/XDSCard.tsx b/packages/core/src/Card/XDSCard.tsx
index a8f3fbe0e9..1894d7851f 100644
--- a/packages/core/src/Card/XDSCard.tsx
+++ b/packages/core/src/Card/XDSCard.tsx
@@ -30,7 +30,7 @@ const styles = stylex.create({
overflow: 'clip',
borderWidth: 1,
borderStyle: 'solid',
- borderColor: colorVars['--color-divider'],
+ borderColor: colorVars['--color-divider-emphasized'],
},
// Inner wrapper: container padding and overflow handling
cardInner: {
diff --git a/packages/core/src/DateInput/XDSDateInput.tsx b/packages/core/src/DateInput/XDSDateInput.tsx
index 44a1092410..3c66d9ea3d 100644
--- a/packages/core/src/DateInput/XDSDateInput.tsx
+++ b/packages/core/src/DateInput/XDSDateInput.tsx
@@ -506,6 +506,7 @@ export const XDSDateInput = forwardRef<HTMLInputElement, XDSDateInputProps>(
aria-required={isRequired === true ? 'true' : undefined}
aria-invalid={status?.type === 'error' ? 'true' : undefined}
aria-busy={isBusy || undefined}
+ autoComplete="off"
{...stylex.props(
styles.input,
isDisabled && styles.inputDisabled,
diff --git a/packages/core/src/Token/XDSToken.tsx b/packages/core/src/Token/XDSToken.tsx
index c712aa3f12..5e06be3334 100644
--- a/packages/core/src/Token/XDSToken.tsx
+++ b/packages/core/src/Token/XDSToken.tsx
@@ -243,7 +243,7 @@ const sizeStyles = stylex.create({
},
md: {
height: `calc(${sizeVars['--size-md']} - 8px)`,
- paddingInline: spacingVars['--spacing-3'],
+ paddingInline: spacingVars['--spacing-2'],
},
});