Skip to content

Commit 048a263

Browse files
committed
feat(range): use gray tokens
1 parent 98df565 commit 048a263

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

core/src/components/range/range.ios.vars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $range-ios-hit-height: $range-ios-slider-height;
2323
$range-ios-bar-height: 4px;
2424

2525
/// @prop - Background of the range bar
26-
$range-ios-bar-background-color: var(--ion-color-step-900, var(--ion-background-color-step-900, #e6e6e6));
26+
$range-ios-bar-background-color: var(--ion-components-ion-range-bg);
2727

2828
/// @prop - Border radius of the range bar
2929
$range-ios-bar-border-radius: 2px;

core/src/components/range/range.md.vars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $range-md-slider-height: 42px;
2020
$range-md-bar-height: 2px;
2121

2222
/// @prop - Background of the range bar
23-
$range-md-bar-background-color: $background-color-step-250;
23+
$range-md-bar-background-color: var(--ion-color-gray-250);
2424

2525
/// @prop - Font size of the range pin
2626
$range-md-pin-font-size: dynamic-font(12px);

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,8 @@ export const darkTheme: DarkTheme = {
9191
IonPicker: {
9292
highlightBg: colors.gray['150']!, // Available only in iOS
9393
},
94+
IonRange: {
95+
bg: colors.gray['900']!, // Available only in iOS
96+
},
9497
},
9598
};

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,8 @@ export const lightTheme: LightTheme = {
3333
IonPicker: {
3434
highlightBg: '#eeeeef', // Available only in iOS
3535
},
36+
IonRange: {
37+
bg: colors.gray['100']!, // Available only in iOS
38+
},
3639
},
3740
};

0 commit comments

Comments
 (0)