|
8 | 8 | @use '@material/theme/theme' as mdc-theme; |
9 | 9 | @use '@material/elevation/elevation-theme' as mdc-elevation-theme; |
10 | 10 | @use '../../material/core/ripple/ripple-theme'; |
| 11 | +@use '../../material/core/typography/typography'; |
11 | 12 | @use '../mdc-helpers/mdc-helpers'; |
12 | 13 | @use '../../material/core/theming/theming'; |
13 | 14 |
|
@@ -189,7 +190,8 @@ $mat-fab-state-target: '.mdc-fab__ripple'; |
189 | 190 | } |
190 | 191 |
|
191 | 192 | @mixin typography($config-or-theme) { |
192 | | - $config: theming.get-typography-config($config-or-theme); |
| 193 | + $config: typography.private-typography-to-2018-config( |
| 194 | + theming.get-typography-config($config-or-theme)); |
193 | 195 | @include mdc-helpers.mat-using-mdc-typography($config) { |
194 | 196 | @include mdc-button.without-ripple($query: mdc-helpers.$mat-typography-styles-query); |
195 | 197 | } |
@@ -281,7 +283,8 @@ $mat-fab-state-target: '.mdc-fab__ripple'; |
281 | 283 | } |
282 | 284 |
|
283 | 285 | @mixin fab-typography($config-or-theme) { |
284 | | - $config: theming.get-typography-config($config-or-theme); |
| 286 | + $config: typography.private-typography-to-2018-config( |
| 287 | + theming.get-typography-config($config-or-theme)); |
285 | 288 | @include mdc-helpers.mat-using-mdc-typography($config) { |
286 | 289 | @include mdc-fab.without-ripple($query: mdc-helpers.$mat-typography-styles-query); |
287 | 290 | } |
@@ -350,7 +353,8 @@ $mat-fab-state-target: '.mdc-fab__ripple'; |
350 | 353 | } |
351 | 354 |
|
352 | 355 | @mixin icon-button-typography($config-or-theme) { |
353 | | - $config: theming.get-typography-config($config-or-theme); |
| 356 | + $config: typography.private-typography-to-2018-config( |
| 357 | + theming.get-typography-config($config-or-theme)); |
354 | 358 | @include mdc-helpers.mat-using-mdc-typography($config) { |
355 | 359 | @include mdc-icon-button.without-ripple($query: mdc-helpers.$mat-typography-styles-query); |
356 | 360 | } |
|
0 commit comments