Skip to content

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

TypeScript

fix(TabList): use accent color for indicator and shift up 1px (#2435)

Ernest983adb05ba04
diff --git a/packages/core/src/TabList/XDSTab.tsx b/packages/core/src/TabList/XDSTab.tsx
index f9a0dd346d..1a8085adb5 100644
--- a/packages/core/src/TabList/XDSTab.tsx
+++ b/packages/core/src/TabList/XDSTab.tsx
@@ -129,7 +129,7 @@ const styles = stylex.create({
},
indicator: {
position: 'absolute',
- bottom: 'var(--_tab-indicator-bottom, -2px)',
+ bottom: 'var(--_tab-indicator-bottom, -1px)',
left: spacingVars['--spacing-3'],
right: spacingVars['--spacing-3'],
height: '2px',
@@ -140,7 +140,7 @@ const styles = stylex.create({
transitionTimingFunction: easeVars['--ease-standard'],
},
indicatorSelected: {
- backgroundColor: colorVars['--color-icon-primary'],
+ backgroundColor: colorVars['--color-accent'],
opacity: 1,
},
indicatorUnselected: {