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