Skip to content

Commit 89907aa

Browse files
author
Stefanie Hein
committed
Date-Time: replace usage of brand-color (on white) with our default text color to get the most contrast on a gray background. See #74215
1 parent 7aacc9c commit 89907aa

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/scss/themes/fylr/_variables.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,8 @@ $calendar-cell-size: 28px !default;
610610
$calendar-cell-count: 8 !default;
611611
$calendar-background: theme-color('light') !default;
612612
$calendar-static-cells-background: $calendar-background !default;
613-
$calendar-static-cells-color: theme-color('primary') !default;
613+
$calendar-static-cells-color: $body-color !default;
614+
$calendar-week-cells-color: gray('700') !default;
614615
$calendar-date-active-background: theme-color('primary') !default;
615616
$calendar-date-hover-background-opacity: 0.2 !default;
616617
$calendar-date-previous-color: gray('500') !default;

src/scss/themes/fylr/components/_date-time.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
&.cui-date-time-month-header {
227227
position: relative;
228228
background: var(--calendar-static-cells-background);
229-
color: var(--brand-color-on-white, #{$calendar-static-cells-color});
229+
color: $calendar-static-cells-color;
230230

231231
&::after {
232232
content: '';
@@ -288,11 +288,12 @@
288288
.cui-date-time-week {
289289
font-size: $calendar-font-size * 0.8575;
290290
background: var(--calendar-static-cells-background);
291-
color: var(--brand-color-on-white, #{$calendar-static-cells-color});
291+
color: $calendar-week-cells-color;
292292
}
293293

294294
.cui-date-time-week-title {
295295
font-weight: $font-weight-normal;
296+
color: $calendar-week-cells-color;
296297
}
297298

298299
.cui-date-time-day {

0 commit comments

Comments
 (0)