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
felhag committed Mar 21, 2021
1 parent 4316787 commit 25778cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/material/slider/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ $focus-ring-size: 30px !default;

.mat-slider-wrapper {
position: absolute;

// force browser to show background-color when using the print function
-webkit-print-color-adjust: exact;
color-adjust: exact;
}

.mat-slider-track-wrapper {
Expand Down

0 comments on commit 25778cf

Please sign in to comment.