Skip to content

Commit e7ea031

Browse files
committed
feat(material/checkbox): show background-color in print stylesheet (#22298)
* added color-adjust for checkbox background-color
1 parent 4b59e1b commit e7ea031

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material/checkbox/checkbox.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * checkbox-common.$size !default;
288288
variables.$linear-out-slow-in-timing-function, opacity checkbox-common.$transition-duration
289289
variables.$linear-out-slow-in-timing-function;
290290

291+
// force browser to show background-color when using the print function
292+
-webkit-print-color-adjust: exact;
293+
color-adjust: exact;
294+
291295
._mat-animation-noopable & {
292296
transition: none;
293297
}

0 commit comments

Comments
 (0)