Skip to content

Commit 1871e50

Browse files
author
Felix
committed
feat(radio/checkbox): show background-color in print stylesheet (#22298)
* added color-adjust for radio background-color * added color-adjust for checkbox background-color
1 parent 4316787 commit 1871e50

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/material/checkbox/_checkbox-theme.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@
5656
}
5757
}
5858

59+
.mat-checkbox-background {
60+
-webkit-print-color-adjust: exact;
61+
color-adjust: exact;
62+
}
63+
5964
.mat-checkbox-disabled {
6065
&.mat-checkbox-checked,
6166
&.mat-checkbox-indeterminate {

src/material/radio/_radio-theme.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
&.mat-radio-checked .mat-radio-persistent-ripple,
1515
&:active .mat-radio-persistent-ripple {
1616
background-color: theming.get-color-from-palette($palette);
17+
-webkit-print-color-adjust: exact;
18+
color-adjust: exact;
1719
}
1820
}
1921

0 commit comments

Comments
 (0)