Skip to content

Commit db67416

Browse files
committed
feat(datetime): use gray tokens
1 parent 3902e5d commit db67416

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:host {
99
--background: #{ion-color(light, base)};
1010
--background-rgb: #{ion-color(light, base, null, true)};
11-
--title-color: #{$text-color-step-400};
11+
--title-color: var(--ion-color-gray-600);
1212
}
1313

1414
:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),
@@ -22,7 +22,7 @@
2222
:host .datetime-header {
2323
@include padding($datetime-ios-padding, $datetime-ios-padding, $datetime-ios-padding, $datetime-ios-padding);
2424

25-
border-bottom: $datetime-ios-border-color;
25+
border-bottom: $datetime-ios-border;
2626

2727
font-size: dynamic-font-max(14px, 1.6);
2828
}
@@ -72,7 +72,7 @@
7272
:host .calendar-days-of-week {
7373
@include padding(0, $datetime-ios-padding * 0.5, 0, $datetime-ios-padding * 0.5);
7474

75-
color: $text-color-step-700;
75+
color: var(--ion-color-gray-300);
7676

7777
font-size: dynamic-font-max(12px, 1.6);
7878

@@ -280,7 +280,7 @@
280280
}
281281

282282
:host .calendar-day.calendar-day-adjacent-day {
283-
color: $text-color-step-700;
283+
color: var(--ion-color-gray-300);
284284
}
285285

286286
// Time / Header
@@ -305,7 +305,7 @@
305305
$datetime-ios-padding * 0.5
306306
);
307307

308-
border-top: $datetime-ios-border-color;
308+
border-top: $datetime-ios-border;
309309
}
310310

311311
:host .datetime-buttons ::slotted(ion-buttons),

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@
33
// iOS Datetime
44
// --------------------------------------------------
55

6+
/// @prop Border width for dividers between header and footer
7+
$datetime-ios-border-width: 0.55px;
8+
9+
/// @prop - Border style for dividers between header and footer
10+
$datetime-ios-border-style: solid;
11+
612
/// @prop - Border color for dividers between header and footer
7-
$datetime-ios-border-color: 0.55px solid globals.$background-color-step-200;
13+
$datetime-ios-border-color: var(--ion-color-gray-200);
14+
15+
/// @prop - Border for dividers between header and footer
16+
$datetime-ios-border: $datetime-ios-border-width $datetime-ios-border-style $datetime-ios-border-color;
817

918
/// @prop - Padding for content
1019
$datetime-ios-padding: 16px;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// -----------------------------------
4141

4242
:host .calendar-action-buttons ion-button {
43-
--color: #{$text-color-step-350};
43+
--color: var(--ion-color-gray-650);
4444
}
4545

4646
.calendar-month-year-toggle {
@@ -50,7 +50,7 @@
5050

5151
background: transparent;
5252

53-
color: #{$text-color-step-350};
53+
color: var(--ion-color-gray-650);
5454

5555
z-index: 1;
5656

@@ -78,7 +78,7 @@
7878
:host .calendar-days-of-week {
7979
@include padding(0px, 10px, 0px, 10px);
8080

81-
color: $text-color-step-500;
81+
color: var(--ion-color-gray-500);
8282

8383
font-size: $datetime-md-calendar-item-font-size;
8484

@@ -138,7 +138,7 @@
138138
}
139139

140140
:host .calendar-day.calendar-day-adjacent-day {
141-
color: $text-color-step-500;
141+
color: var(--ion-color-gray-500);
142142
}
143143

144144
// Time / Header
@@ -148,7 +148,7 @@
148148
}
149149

150150
:host .time-header {
151-
color: #{$text-color-step-350};
151+
color: var(--ion-color-gray-650);
152152
}
153153

154154
// Month and Year

0 commit comments

Comments
 (0)