Skip to content

Commit ed0bede

Browse files
author
Felix
committed
feat(material/slider): show background-color in print stylesheet (#11364)
* added color-adjust to mat-slider-wrapper to display slider correctly while printing
1 parent 4316787 commit ed0bede

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/material/slider/_slider-theme.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
theming.get-color-from-palette($foreground, base, $mat-slider-tick-opacity);
5050
$mat-slider-tick-size: 2px;
5151

52+
.mat-slider-wrapper {
53+
-webkit-print-color-adjust: exact;
54+
color-adjust: exact;
55+
}
56+
5257
.mat-slider-track-background {
5358
background-color: $mat-slider-off-color;
5459
}

0 commit comments

Comments
 (0)