File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 12
12
$warn : map .get ($config , warn );
13
13
$foreground : map .get ($config , foreground );
14
14
15
- .mat-mdc-checkbox {
15
+ #{& or body} {
16
16
@include mdc-checkbox-theme .theme (tokens-mdc-checkbox .get-color-tokens ($config ));
17
+ }
17
18
19
+ .mat-mdc-checkbox {
18
20
& .mat-primary {
19
21
$primary-config : map .merge ($config , (accent: $primary ));
20
22
@include mdc-checkbox-theme .theme (tokens-mdc-checkbox .get-color-tokens ($primary-config ));
40
42
@mixin typography ($config-or-theme ) {
41
43
$config : typography .private-typography-to-2018-config (
42
44
theming .get-typography-config ($config-or-theme ));
43
- .mat-mdc-checkbox {
45
+
46
+ #{& or body} {
44
47
@include mdc-checkbox-theme .theme (tokens-mdc-checkbox .get-typography-tokens ($config ));
48
+ }
45
49
50
+ .mat-mdc-checkbox {
46
51
@include mdc-helpers .using-mdc-typography ($config ) {
47
52
// TODO(mmalerba): Switch to static-styles, theme-styles, and theme once they're available.
48
53
@include mdc-form-field .core-styles ($query : mdc-helpers .$mdc-typography-styles-query );
53
58
@mixin density ($config-or-theme ) {
54
59
$density-scale : theming .get-density-config ($config-or-theme );
55
60
56
- .mat-mdc-checkbox {
61
+ #{& or body} {
57
62
@include mdc-checkbox-theme .theme (tokens-mdc-checkbox .get-density-tokens ($density-scale ));
58
63
}
59
64
Original file line number Diff line number Diff line change 142
142
}
143
143
}
144
144
145
- .mat-mdc-checkbox {
145
+ body {
146
146
// Add default values for MDC checkbox tokens that aren't outputted by the theming API.
147
147
@include mdc-checkbox-theme .theme (tokens-mdc-checkbox .get-unthemable-tokens ());
148
148
}
You can’t perform that action at this time.
0 commit comments