Skip to content

Commit

Permalink
fix(datepicker): producing wrong selector for disabled dates for them…
Browse files Browse the repository at this point in the history
…es 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.
  • Loading branch information
crisbeto authored and mmalerba committed Apr 19, 2018
1 parent 99af109 commit 54301da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/datepicker/_datepicker-theme.scss
Expand Up @@ -56,10 +56,10 @@ $mat-calendar-weekday-table-font-size: 11px !default;
.mat-calendar-body-cell-content {
color: mat-color($foreground, text);
border-color: transparent;
}

.mat-calendar-body-disabled > &:not(.mat-calendar-body-selected) {
color: mat-color($foreground, disabled-text);
}
.mat-calendar-body-disabled > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected) {
color: mat-color($foreground, disabled-text);
}

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

0 comments on commit 54301da

Please sign in to comment.