Skip to content

Commit 9011039

Browse files
committed
Revert "fix(material-experimental/mdc-checkbox): fix dark theme (#20926)" (#20939)
This reverts commit 9b3992b. (cherry picked from commit 07f6a48)
1 parent 6add7fe commit 9011039

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

src/material-experimental/mdc-checkbox/_checkbox-theme.scss

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@use '@material/checkbox/checkbox-theme' as checkbox-theme;
2-
31
@import '@material/checkbox/mixins.import';
42
@import '@material/checkbox/variables.import';
53
@import '@material/form-field/mixins.import';
@@ -10,19 +8,15 @@
108
// Mixin that includes the checkbox theme styles with a given palette.
119
// By default, the MDC checkbox always uses the `secondary` palette.
1210
@mixin _mdc-checkbox-styles-with-color($color) {
13-
@include checkbox-theme.theme((
14-
density-scale: null,
15-
checkmark-color: mdc-theme-prop-value(on-#{$color}),
16-
container-checked-color: $color,
17-
container-checked-hover-color: null,
18-
container-disabled-color: rgba(mdc-theme-prop-value(on-surface), 0.38),
19-
outline-color: rgba(mdc-theme-prop-value(on-surface), 0.54),
20-
outline-hover-color: null,
21-
ripple-color: null,
22-
ripple-opacity: null,
23-
ripple-checked-color: null,
24-
ripple-checked-opacity: null,
25-
));
11+
$orig-mdc-checkbox-mark-color: $mdc-checkbox-mark-color;
12+
$mdc-checkbox-mark-color: mdc-theme-prop-value(on-#{$color}) !global;
13+
$orig-mdc-checkbox-baseline-theme-color: $mdc-checkbox-baseline-theme-color;
14+
$mdc-checkbox-baseline-theme-color: $color !global;
15+
16+
@include mdc-checkbox-without-ripple($query: $mat-theme-styles-query);
17+
18+
$mdc-checkbox-mark-color: $orig-mdc-checkbox-mark-color !global;
19+
$mdc-checkbox-baseline-theme-color: $orig-mdc-checkbox-baseline-theme-color !global;
2620
}
2721

2822
@mixin mat-mdc-checkbox-color($config-or-theme) {

0 commit comments

Comments
 (0)