|
10 | 10 | /// for the mat-chips.
|
11 | 11 | /// @param {Map} $theme The theme to generate base styles for.
|
12 | 12 | @mixin base($theme) {
|
13 |
| - $tokens: m2-chip.get-unthemable-tokens($theme); |
14 | 13 | @if inspection.get-theme-version($theme) == 1 {
|
15 |
| - $tokens: map.get(m3-chip.get-tokens($theme), base); |
| 14 | + @include token-utils.values(map.get(m3-chip.get-tokens($theme), base)); |
| 15 | + } @else { |
| 16 | + .mat-mdc-standard-chip { |
| 17 | + @include token-utils.values(m2-chip.get-unthemable-tokens($theme)); |
| 18 | + } |
16 | 19 | }
|
17 |
| - |
18 |
| - @include token-utils.values($tokens); |
19 | 20 | }
|
20 | 21 |
|
21 | 22 | /// Outputs color theme styles for the mat-chips.
|
|
50 | 51 | /// Outputs typography theme styles for the mat-chips.
|
51 | 52 | /// @param {Map} $theme The theme to generate typography styles for.
|
52 | 53 | @mixin typography($theme) {
|
53 |
| - $tokens: m2-chip.get-typography-tokens($theme); |
54 | 54 | @if inspection.get-theme-version($theme) == 1 {
|
55 |
| - $tokens: map.get(m3-chip.get-tokens($theme), typography); |
| 55 | + @include token-utils.values(map.get(m3-chip.get-tokens($theme), typography)); |
| 56 | + } @else { |
| 57 | + .mat-mdc-standard-chip { |
| 58 | + @include token-utils.values(m2-chip.get-typography-tokens($theme)); |
| 59 | + } |
56 | 60 | }
|
57 |
| - |
58 |
| - @include token-utils.values($tokens); |
59 | 61 | }
|
60 | 62 |
|
61 | 63 | /// Outputs density theme styles for the mat-chips.
|
62 | 64 | /// @param {Map} $theme The theme to generate density styles for.
|
63 | 65 | @mixin density($theme) {
|
64 |
| - $tokens: m2-chip.get-density-tokens($theme); |
65 | 66 | @if inspection.get-theme-version($theme) == 1 {
|
66 |
| - $tokens: map.get(m3-chip.get-tokens($theme), density); |
| 67 | + @include token-utils.values(map.get(m3-chip.get-tokens($theme), density)); |
| 68 | + } @else { |
| 69 | + .mat-mdc-chip.mat-mdc-standard-chip { |
| 70 | + @include token-utils.values(m2-chip.get-density-tokens($theme)); |
| 71 | + } |
67 | 72 | }
|
68 |
| - |
69 |
| - @include token-utils.values($tokens); |
70 | 73 | }
|
71 | 74 |
|
72 | 75 | /// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
0 commit comments