Skip to content

Commit 69a8fb5

Browse files
authored
feat(material/slider): show background-color in print stylesheet (#11364) (#22300)
* added color-adjust to mat-slider-wrapper to display slider correctly while printing
1 parent 3c975e9 commit 69a8fb5

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 @@ $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)