Skip to content

Commit 2f8b271

Browse files
authored
fix(datepicker): set color on range separator (#19308)
Currently the date range input separator inherits its color which may not always be correct. These changes set the color explicitly based on the theme.
1 parent 7769959 commit 2f8b271

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/material/datepicker/_datepicker-theme.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ $mat-calendar-weekday-table-font-size: 11px !default;
6969
color: mat-color($foreground, secondary-text);
7070
}
7171

72-
.mat-calendar-body-cell-content {
72+
.mat-calendar-body-cell-content,
73+
.mat-date-range-input-separator {
7374
color: mat-color($foreground, text);
7475
border-color: transparent;
7576
}
7677

77-
.mat-calendar-body-disabled > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected) {
78+
.mat-calendar-body-disabled > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected),
79+
.mat-form-field-disabled .mat-date-range-input-separator {
7880
color: mat-color($foreground, disabled-text);
7981
}
8082

@@ -153,7 +155,7 @@ $mat-calendar-weekday-table-font-size: 11px !default;
153155
}
154156
}
155157

156-
.mat-date-range-input-inner:disabled {
158+
.mat-date-range-input-inner[disabled] {
157159
color: mat-color($foreground, disabled-text);
158160
}
159161
}

0 commit comments

Comments
 (0)