Skip to content

Commit 54301da

Browse files
crisbetommalerba
authored andcommitted
fix(datepicker): producing wrong selector for disabled dates for themes inside a selector (#10904)
Fixes selector for the disabled dates inside the calendar being wrong, if the theme is scoped under a selector, e.g. ```scss .dark-theme { @include angular-material-theme($dark-theme); } ``` Relates to #10889.
1 parent 99af109 commit 54301da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/datepicker/_datepicker-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ $mat-calendar-weekday-table-font-size: 11px !default;
5656
.mat-calendar-body-cell-content {
5757
color: mat-color($foreground, text);
5858
border-color: transparent;
59+
}
5960

60-
.mat-calendar-body-disabled > &:not(.mat-calendar-body-selected) {
61-
color: mat-color($foreground, disabled-text);
62-
}
61+
.mat-calendar-body-disabled > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected) {
62+
color: mat-color($foreground, disabled-text);
6363
}
6464

6565
.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover,

0 commit comments

Comments
 (0)