Skip to content

Commit

Permalink
feat(material/slider): show background-color in print stylesheet (#11364
Browse files Browse the repository at this point in the history
)

* added color-adjust to mat-slider-wrapper to display slider correctly while printing
  • Loading branch information
Felix committed Mar 20, 2021
1 parent 4316787 commit ed0bede
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/material/slider/_slider-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@
theming.get-color-from-palette($foreground, base, $mat-slider-tick-opacity);
$mat-slider-tick-size: 2px;

.mat-slider-wrapper {
-webkit-print-color-adjust: exact;
color-adjust: exact;
}

.mat-slider-track-background {
background-color: $mat-slider-off-color;
}
Expand Down

0 comments on commit ed0bede

Please sign in to comment.