Skip to content

Commit 5e5e883

Browse files
committed
feat(item, item-divider, list-header): use gray tokens
1 parent 73b9b4f commit 5e5e883

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

core/src/components/item-divider/item-divider.ios.vars.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ $item-divider-ios-font-size: dynamic-font(17px);
1414
$item-divider-ios-font-weight: 600;
1515

1616
/// @prop - Background for the divider
17-
$item-divider-ios-background: $background-color-step-100;
17+
$item-divider-ios-background: var(--ion-color-gray-100);
1818

1919
/// @prop - Color for the divider
20-
$item-divider-ios-color: $text-color-step-150;
20+
$item-divider-ios-color: var(--ion-color-gray-850);
2121

2222
/// @prop - Padding start for the divider
2323
$item-divider-ios-padding-start: $item-ios-padding-start;

core/src/components/item-divider/item-divider.md.vars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
$item-divider-md-min-height: 30px;
99

1010
/// @prop - Color for the divider
11-
$item-divider-md-color: $text-color-step-600;
11+
$item-divider-md-color: var(--ion-color-gray-400);
1212

1313
/// @prop - Background for the divider
1414
$item-divider-md-background: $background-color;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $item-ios-paragraph-margin-start: $item-ios-paragraph-margin-end;
2525
$item-ios-paragraph-font-size: dynamic-font(14px);
2626

2727
/// @prop - Color of the item paragraph
28-
$item-ios-paragraph-text-color: var(--ion-text-color-step-550, #a3a3a3);
28+
$item-ios-paragraph-text-color: var(--ion-components-ion-item-paragraph-text-color);
2929

3030
/// @prop - Width of the avatar in the item
3131
$item-ios-avatar-width: 36px;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$item-md-min-height: 48px;
88

99
/// @prop - Color of the item paragraph
10-
$item-md-paragraph-text-color: $text-color-step-400;
10+
$item-md-paragraph-text-color: var(--ion-color-gray-600);
1111

1212
/// @prop - Font size of the item
1313
$item-md-font-size: 16px;

core/src/components/list-header/list-header.ios.vars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $list-header-ios-font-weight: 700;
1717
$list-header-ios-letter-spacing: 0;
1818

1919
/// @prop - Text color of the list header
20-
$list-header-ios-color: $text-color-step-150;
20+
$list-header-ios-color: var(--ion-color-gray-850);
2121

2222
/// @prop - Background color of the list header
2323
$list-header-ios-background-color: transparent;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const darkTheme: DarkTheme = {
6666
},
6767
IonItem: {
6868
background: '#000000',
69+
paragraphTextColor: colors.gray['450']!,
6970
},
7071
IonModal: {
7172
background: 'var(--ion-background-color-step-100)',

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ export const lightTheme: LightTheme = {
2424
indicatorBgFocused: '#d9e0ea',
2525
separatorColor: '#73849a',
2626
},
27+
IonItem: {
28+
paragraphTextColor: '#a3a3a3',
29+
},
2730
},
2831
};

0 commit comments

Comments
 (0)