Skip to content

Commit c00c2db

Browse files
authored
fix(material/datepicker): unable to distinguish disabled buttons in the calendar (#28385)
Fixes that at some point during the tokens transition the disabled state of the calendar buttons started being overwritten by the enabled state.
1 parent 5c7674a commit c00c2db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/material/datepicker/calendar.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,8 @@ $_tokens: tokens-mat-datepicker.$prefix, tokens-mat-datepicker.get-token-slots()
9292
position: relative;
9393

9494
@include token-utils.use-tokens($_tokens...) {
95-
9695
// Needs need a bit more specificity to avoid being overwritten by the .mat-icon-button.
97-
.mat-datepicker-content & {
96+
.mat-datepicker-content &:not(.mat-mdc-button-disabled) {
9897
@include token-utils.create-token-slot(color, calendar-navigation-button-icon-color);
9998
}
10099
}

0 commit comments

Comments
 (0)