Skip to content

Commit cd6ba68

Browse files
committed
Add typography mixin
1 parent 55a5bcf commit cd6ba68

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/lib/core/typography/_all-typography.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
@import '../../sidenav/sidenav-theme';
2323
@import '../../slide-toggle/slide-toggle-theme';
2424
@import '../../slider/slider-theme';
25+
@import '../../stepper/stepper-theme';
2526
@import '../../tabs/tabs-theme';
2627
@import '../../toolbar/toolbar-theme';
2728
@import '../../tooltip/tooltip-theme';
@@ -61,6 +62,7 @@
6162
@include mat-sidenav-typography($config);
6263
@include mat-slide-toggle-typography($config);
6364
@include mat-slider-typography($config);
65+
@include mat-stepper-typography($config);
6466
@include mat-tabs-typography($config);
6567
@include mat-toolbar-typography($config);
6668
@include mat-tooltip-typography($config);

src/lib/stepper/_stepper-theme.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@import '../core/theming/palette';
22
@import '../core/theming/theming';
3-
@import '../core/typography/_typography-utils.scss';
3+
@import '../core/typography/typography-utils';
44

55
@mixin mat-stepper-theme($theme) {
66
$foreground: map-get($theme, foreground);
@@ -45,3 +45,9 @@
4545
border-top-color: mat-color($foreground, divider);
4646
}
4747
}
48+
49+
@mixin mat-stepper-typography($config) {
50+
.mat-stepper-vertical, .mat-stepper-horizontal {
51+
font-family: mat-font-family($config);
52+
}
53+
}

0 commit comments

Comments
 (0)