|
2 | 2 | @use '@material/radio/radio-theme' as mdc-radio-theme;
|
3 | 3 | @use '@material/form-field' as mdc-form-field;
|
4 | 4 | @use '../core/mdc-helpers/mdc-helpers';
|
| 5 | +@use '../core/style/sass-utils'; |
5 | 6 | @use '../core/theming/theming';
|
6 | 7 | @use '../core/theming/inspection';
|
7 | 8 | @use '../core/tokens/token-utils';
|
|
10 | 11 | @use '../core/tokens/m2/mat/radio' as tokens-mat-radio;
|
11 | 12 |
|
12 | 13 | @mixin base($theme) {
|
13 |
| - .mat-mdc-radio-button { |
| 14 | + @include sass-utils.current-selector-or-root() { |
14 | 15 | @include mdc-radio-theme.theme(tokens-mdc-radio.get-unthemable-tokens());
|
15 | 16 | @include token-utils.create-token-values(
|
16 | 17 | tokens-mat-radio.$prefix, tokens-mat-radio.get-unthemable-tokens());
|
|
19 | 20 |
|
20 | 21 | @mixin color($theme) {
|
21 | 22 | @include mdc-helpers.using-mdc-theme($theme) {
|
22 |
| - .mat-mdc-radio-button { |
| 23 | + @include sass-utils.current-selector-or-root() { |
23 | 24 | @include mdc-form-field.core-styles($query: mdc-helpers.$mdc-theme-styles-query);
|
24 | 25 | }
|
25 | 26 | }
|
|
46 | 47 | }
|
47 | 48 |
|
48 | 49 | @mixin typography($theme) {
|
49 |
| - .mat-mdc-radio-button { |
| 50 | + @include sass-utils.current-selector-or-root() { |
50 | 51 | @include mdc-radio-theme.theme(tokens-mdc-radio.get-typography-tokens($theme));
|
51 | 52 | @include mdc-helpers.using-mdc-typography($theme) {
|
52 | 53 | @include mdc-form-field.core-styles($query: mdc-helpers.$mdc-typography-styles-query);
|
|
57 | 58 | @mixin density($theme) {
|
58 | 59 | $density-scale: inspection.get-theme-density($theme);
|
59 | 60 |
|
60 |
| - .mat-mdc-radio-button .mdc-radio { |
| 61 | + @include sass-utils.current-selector-or-root() { |
61 | 62 | @include mdc-radio-theme.theme(tokens-mdc-radio.get-density-tokens($theme));
|
62 | 63 | }
|
63 | 64 |
|
|
0 commit comments