Skip to content

Commit bc0c283

Browse files
committed
fix(material-experimental/mdc-checkbox): reduce amount of emitted theme css
We were adding the ripple variables to the MDC checkbox theme, even though we weren't actually using it. These changes remove the variables which shaves off ~30kb from the theme.
1 parent 603b248 commit bc0c283

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,10 @@
1616
@mixin private-checkbox-styles-with-color($color) {
1717
@include mdc-checkbox-theme.theme-deprecated(
1818
(
19-
density-scale: null,
2019
checkmark-color: mdc-theme-color.prop-value(on-#{$color}),
2120
container-checked-color: $color,
22-
container-checked-hover-color: null,
2321
container-disabled-color: rgba(mdc-theme-color.prop-value(on-surface), 0.38),
2422
outline-color: rgba(mdc-theme-color.prop-value(on-surface), 0.54),
25-
outline-hover-color: null,
26-
ripple-color: mdc-theme-color.prop-value(on-surface),
27-
ripple-opacity: mdc-ripple-theme.$dark-ink-opacities,
28-
ripple-checked-color: $color,
29-
ripple-checked-opacity: mdc-ripple-theme.$dark-ink-opacities,
3023
)
3124
);
3225
}
@@ -71,7 +64,6 @@
7164
);
7265

7366
.mat-mdc-checkbox {
74-
@include private-checkbox-styles-with-color(primary);
7567
@include mdc-form-field.core-styles($query: mdc-helpers.$mat-theme-styles-query);
7668
@include ripple-theme.color((
7769
foreground: (

0 commit comments

Comments
 (0)