From 25778cf92a8905c8bd7e0aa347c37b4e3c0e351b Mon Sep 17 00:00:00 2001 From: Felix Hagemans Date: Sat, 20 Mar 2021 10:48:12 +0100 Subject: [PATCH] feat(material/slider): show background-color in print stylesheet (#11364) * added color-adjust to mat-slider-wrapper to display slider correctly while printing --- src/material/slider/slider.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/material/slider/slider.scss b/src/material/slider/slider.scss index 3f23aaecab38..bd7af0659f61 100644 --- a/src/material/slider/slider.scss +++ b/src/material/slider/slider.scss @@ -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 {