Skip to content

Commit 059214e

Browse files
felhagandrewseguin
authored andcommitted
feat(material/slider): show background-color in print stylesheet (#11364) (#22300)
* added color-adjust to mat-slider-wrapper to display slider correctly while printing (cherry picked from commit 69a8fb5)
1 parent 326a092 commit 059214e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material/slider/slider.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ $mat-slider-focus-ring-size: 30px !default;
4444

4545
.mat-slider-wrapper {
4646
position: absolute;
47+
48+
// force browser to show background-color when using the print function
49+
-webkit-print-color-adjust: exact;
50+
color-adjust: exact;
4751
}
4852

4953
.mat-slider-track-wrapper {

0 commit comments

Comments
 (0)