Skip to content

Commit 50998a3

Browse files
committed
feat(tokens): use gray on datetime
1 parent 9b0782c commit 50998a3

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

core/src/components/datetime/datetime.md.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// --------------------------------------------------
77

88
:host {
9-
--background: var(--ion-color-step-100, var(--ion-background-color-step-100, #ffffff));
9+
--background: var(--ion-components-ion-datetime-bg);
1010
--title-color: #{current-color(contrast)};
1111
}
1212

core/src/components/datetime/datetime.native.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
@include globals.border-radius(8px);
7878
@include globals.padding(6px, 12px, 6px, 12px);
7979

80-
background: var(--ion-color-step-300, var(--ion-background-color-step-300, #edeef0));
80+
background: var(--ion-components-ion-datetime-time-body-bg);
8181

8282
color: globals.$text-color;
8383
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ export const darkTheme: DarkTheme = {
221221
background: '#000000',
222222
},
223223
IonDatetime: {
224-
background: defaultPrimitiveColors.gray['50']!,
224+
bg: defaultPrimitiveColors.gray['50']!,
225+
timeBodyBg: defaultPrimitiveColors.gray['650']!,
225226
},
226227
},
227228
};

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ export const lightTheme: LightTheme = {
164164
},
165165
components: {
166166
IonDatetime: {
167-
background: defaultPrimitiveColors.gray['50']!,
167+
bg: defaultPrimitiveColors.white,
168+
timeBodyBg: '#edeef0',
168169
},
169170
},
170171
};

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { generateColorSteps } from '../../utils/theme';
22
import { darkTheme as baseDarkTheme } from '../base/dark.tokens';
33
import type { DarkTheme } from '../themes.interfaces';
44

5+
const graySteps = generateColorSteps('#ffffff', '#000000', true);
6+
57
export const darkTheme: DarkTheme = {
68
...baseDarkTheme,
79

@@ -54,7 +56,7 @@ export const darkTheme: DarkTheme = {
5456

5557
color: {
5658
// TODO: Update hex values to use the text color variable and background color variable
57-
gray: generateColorSteps('#ffffff', '#000000', true),
59+
gray: graySteps,
5860
},
5961

6062
components: {
@@ -69,5 +71,8 @@ export const darkTheme: DarkTheme = {
6971
toolbarBackground: 'var(--ion-background-color-step-150)',
7072
toolbarBorderColor: 'var(--ion-background-color-step-250)',
7173
},
74+
IonDatetime: {
75+
timeBodyBg: graySteps['300']!,
76+
},
7277
},
7378
};

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ export const darkTheme: DarkTheme = {
7575
background: '#1f1f1f',
7676
},
7777
IonDatetime: {
78-
background: graySteps['100']!,
78+
bg: graySteps['100']!,
79+
timeBodyBg: graySteps['300']!,
7980
},
8081
},
8182
};

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import { defaultPrimitiveColors } from '../base/default.tokens.primitives';
21
import type { LightTheme } from '../themes.interfaces';
32

4-
export const lightTheme: LightTheme = {
5-
components: {
6-
IonDatetime: {
7-
background: defaultPrimitiveColors.white,
8-
},
9-
},
10-
};
3+
export const lightTheme: LightTheme = {};

0 commit comments

Comments
 (0)