From ed0bedeac887a9fd3f9fb09cffcf8fa3e6414c46 Mon Sep 17 00:00:00 2001 From: Felix 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-theme.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/material/slider/_slider-theme.scss b/src/material/slider/_slider-theme.scss index 4ddcde651473..02420d1b9367 100644 --- a/src/material/slider/_slider-theme.scss +++ b/src/material/slider/_slider-theme.scss @@ -49,6 +49,11 @@ theming.get-color-from-palette($foreground, base, $mat-slider-tick-opacity); $mat-slider-tick-size: 2px; + .mat-slider-wrapper { + -webkit-print-color-adjust: exact; + color-adjust: exact; + } + .mat-slider-track-background { background-color: $mat-slider-off-color; }