Skip to content

Commit 1ac2ba8

Browse files
committed
feat(datetime-button): use gray tokens
1 parent c0b9385 commit 1ac2ba8

File tree

6 files changed

+17
-2
lines changed

6 files changed

+17
-2
lines changed

core/src/components/datetime-button/datetime-button.ios.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
}
99

1010
:host button.ion-activated {
11-
color: $text-color-step-400;
11+
color: var(--ion-color-gray-600);
1212
}

core/src/components/datetime-button/datetime-button.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
border: none;
2525

26-
background: var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));
26+
background: var(--ion-components-ion-datetime-button-bg);
2727

2828
color: $text-color;
2929

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,5 +225,8 @@ export const darkTheme: DarkTheme = {
225225
IonBreadcrumb: {
226226
separatorColor: colors.gray['550']!,
227227
},
228+
IonDatetimeButton: {
229+
bg: colors.gray['300']!,
230+
},
228231
},
229232
};

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,8 @@ export const lightTheme: LightTheme = {
164164
IonBreadcrumb: {
165165
separatorColor: '#73849a',
166166
},
167+
IonDatetimeButton: {
168+
bg: '#edeef0',
169+
},
167170
},
168171
};

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ import type { DarkTheme } from '../themes.interfaces';
33

44
export const darkTheme: DarkTheme = {
55
...baseDarkTheme,
6+
7+
components: {
8+
IonDatetimeButton: {
9+
bg: '#595959',
10+
},
11+
},
612
};

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,8 @@ export const darkTheme: DarkTheme = {
9090
colorFocused: colors.gray['800']!, // Available only in md
9191
separatorColor: colors.gray['550']!,
9292
},
93+
IonDatetimeButton: {
94+
bg: colors.gray['300']!,
95+
},
9396
},
9497
};

0 commit comments

Comments
 (0)