|
22 | 22 | @else {
|
23 | 23 | @include sass-utils.current-selector-or-root() {
|
24 | 24 | @include mdc-list-theme.theme(tokens-mdc-list.get-unthemable-tokens());
|
| 25 | + @include token-utils.create-token-values( |
| 26 | + tokens-mat-list.$prefix, tokens-mat-list.get-unthemable-tokens()); |
25 | 27 | }
|
26 | 28 | }
|
27 | 29 | }
|
|
36 | 38 | // Add values for MDC list tokens.
|
37 | 39 | @include sass-utils.current-selector-or-root() {
|
38 | 40 | @include mdc-list-theme.theme($mdc-list-color-tokens);
|
| 41 | + @include token-utils.create-token-values( |
| 42 | + tokens-mat-list.$prefix, tokens-mat-list.get-color-tokens($theme)); |
39 | 43 | }
|
40 | 44 |
|
41 | 45 | .mdc-list-item__start,
|
|
150 | 154 | // Add values for MDC list tokens.
|
151 | 155 | @include sass-utils.current-selector-or-root() {
|
152 | 156 | @include mdc-list-theme.theme($mdc-list-typography-tokens);
|
| 157 | + @include token-utils.create-token-values( |
| 158 | + tokens-mat-list.$prefix, tokens-mat-list.get-typography-tokens($theme)); |
153 | 159 | }
|
154 | 160 |
|
155 | 161 | // MDC does not have tokens for the subheader.
|
|
182 | 188 | }
|
183 | 189 |
|
184 | 190 | @mixin _theme-from-tokens($tokens) {
|
185 |
| - @if ($tokens != ()) { |
186 |
| - @include mdc-list-theme.theme(map.get($tokens, tokens-mdc-list.$prefix)); |
| 191 | + @include mdc-list-theme.theme(token-utils.get-tokens-for($tokens, tokens-mdc-list.$prefix)); |
187 | 192 |
|
188 |
| - $mat-list-tokens: token-utils.get-tokens-for($tokens, tokens-mat-list.$prefix); |
189 |
| - @include token-utils.create-token-values(tokens-mat-list.$prefix, $mat-list-tokens); |
190 |
| - } |
| 193 | + $mat-list-tokens: token-utils.get-tokens-for($tokens, tokens-mat-list.$prefix); |
| 194 | + @include token-utils.create-token-values(tokens-mat-list.$prefix, $mat-list-tokens); |
191 | 195 | }
|
0 commit comments