Skip to content

Commit 16a10dd

Browse files
committed
feat(segment-button): use gray tokens
1 parent 826a7e4 commit 16a10dd

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

core/src/components/segment-button/segment-button.ios.vars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $segment-button-ios-background-checked: $segment-button-ios-background;
1313
$segment-button-ios-color: $text-color;
1414

1515
/// @prop - Background of the checked segment button indicator
16-
$segment-button-ios-indicator-color: var(--ion-color-step-350, var(--ion-background-color-step-350, $background-color));
16+
$segment-button-ios-indicator-color: var(--ion-components-ion-segment-button-checked-indicator-bg);
1717

1818
/// @prop - Margin of the segment button
1919
$segment-button-ios-margin: 2px;

core/src/themes/ios/dark.tokens.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,8 @@ export const darkTheme: DarkTheme = {
9797
IonRefresher: {
9898
nativeSpinnerColor: colors.gray['450']!, // Available only in iOS
9999
},
100+
IonSegmentButton: {
101+
checkedIndicatorBg: colors.gray['350']!, // Available only in iOS
102+
},
100103
},
101104
};

core/src/themes/ios/light.tokens.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,8 @@ export const lightTheme: LightTheme = {
3939
IonRefresher: {
4040
nativeSpinnerColor: '#747577', // Available only in iOS
4141
},
42+
IonSegmentButton: {
43+
checkedIndicatorBg: defaultPrimitiveColors.white, // Available only in iOS
44+
},
4245
},
4346
};

0 commit comments

Comments
 (0)