Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/material/datepicker/calendar-body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,14 @@ $mat-calendar-body-cell-content-size: 100% - $mat-calendar-body-cell-content-mar
text-align: right;
}
}

// Disable the hover styles on non-hover devices. Since this is more of a progressive
// enhancement and not all desktop browsers support this kind of media query, we can't
// use something like `@media (hover)`.
@media (hover: none) {
.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover {
& > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected) {
background-color: transparent;
}
}
}