Skip to content

Commit 75f0f6a

Browse files
committed
fix(datepicker): fix background color when todays date is selected
1 parent 789db48 commit 75f0f6a

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

ui/components/datepickers/base/_index.scss

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@
5454
&:hover:not(.slds-disabled-text) > .slds-day,
5555
&:focus:not(.slds-disabled-text) > .slds-day,
5656
&.slds-is-today > .slds-day {
57-
background: $color-background-row-hover;
5857
cursor: pointer;
5958
}
6059

60+
&.slds-is-today > .slds-day {
61+
background-color: $color-background-row-selected;
62+
}
63+
6164
&:focus {
6265
outline: 0;
6366

@@ -72,15 +75,19 @@
7275
* @selector .slds-is-selected
7376
* @restrict .slds-datepicker td
7477
*/
75-
&.slds-is-selected:not(.slds-is-today) > .slds-day {
78+
// &.slds-is-selected {
79+
// color: $color-text-brand-primary;
80+
// }
81+
82+
&.slds-is-selected > .slds-day {
7683
background: $brand-accessible;
77-
color: $color-text-button-brand-hover;
84+
color: $color-text-brand-primary;
7885
}
7986

8087
&.slds-is-selected:focus > .slds-day {
8188
background: $brand-accessible-active;
8289
box-shadow: $brand-accessible-active 0 0 3px;
83-
color: currentColor;
90+
color: $color-text-brand-primary;
8491
}
8592
}
8693

ui/components/datepickers/range/_index.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
overflow: visible;
6868
}
6969

70+
&.slds-is-today > .slds-day {
71+
box-shadow: $color-background-alt 0 0 0 1px inset;
72+
}
73+
7074
+ .slds-is-selected-multi > .slds-day:before {
7175
@include calendar-selection-fill;
7276
}

0 commit comments

Comments
 (0)