Skip to content

Commit a7d3dc4

Browse files
committed
fix(material/slide-toggle): Allow typography mixin to consume 2018 style configs
See angular#21059 for context.
1 parent 89d5790 commit a7d3dc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/material/slide-toggle/_slide-toggle-theme.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import '../core/style/private';
22
@import '../core/theming/palette';
33
@import '../core/theming/theming';
4+
@import '../core/typography/typography';
45
@import '../core/typography/typography-utils';
56

67
@mixin _mat-slide-toggle-checked($palette, $thumb-checked-hue) {
@@ -73,6 +74,7 @@
7374
}
7475

7576
@mixin mat-slide-toggle-typography($config-or-theme) {
77+
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
7678
$config: mat-get-typography-config($config-or-theme);
7779
.mat-slide-toggle-content {
7880
font-family: mat-font-family($config);

0 commit comments

Comments
 (0)