|
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()); |
|
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 | + } |
| 52 | + |
| 53 | + .mat-mdc-radio-button { |
51 | 54 | @include mdc-helpers.using-mdc-typography($theme) { |
52 | 55 | @include mdc-form-field.core-styles($query: mdc-helpers.$mdc-typography-styles-query); |
53 | 56 | } |
|
57 | 60 | @mixin density($theme) { |
58 | 61 | $density-scale: inspection.get-theme-density($theme); |
59 | 62 |
|
60 | | - .mat-mdc-radio-button .mdc-radio { |
| 63 | + @include sass-utils.current-selector-or-root() { |
61 | 64 | @include mdc-radio-theme.theme(tokens-mdc-radio.get-density-tokens($theme)); |
62 | 65 | } |
63 | 66 |
|
|
0 commit comments