Skip to content

Commit b694732

Browse files
committed
fixup! fixup! fix(material/core): allow mixins to handle 2018 typography configs
1 parent 67e0884 commit b694732

File tree

17 files changed

+16
-19
lines changed

17 files changed

+16
-19
lines changed

src/material-experimental/mdc-checkbox/_checkbox-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
}
8484

8585
@mixin mat-mdc-checkbox-typography($config-or-theme) {
86-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
86+
$config: mat-get-typography-config($config-or-theme);
8787
@include mat-using-mdc-typography($config) {
8888
@include mdc-checkbox-without-ripple($query: $mat-typography-styles-query);
8989
@include mdc-form-field-core-styles($query: $mat-typography-styles-query);

src/material-experimental/mdc-chips/_chips-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
}
5757

5858
@mixin mat-mdc-chips-typography($config-or-theme) {
59-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
59+
$config: mat-get-typography-config($config-or-theme);
6060
@include mdc-chip-set-core-styles($query: $mat-typography-styles-query);
6161
@include mat-using-mdc-typography($config) {
6262
@include mdc-chip-without-ripple($query: $mat-typography-styles-query);

src/material-experimental/mdc-dialog/_dialog-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

1111
@mixin mat-mdc-dialog-typography($config-or-theme) {
12-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
12+
$config: mat-get-typography-config($config-or-theme);
1313
@include mat-using-mdc-typography($config) {
1414
@include mdc-dialog-core-styles($query: $mat-typography-styles-query);
1515
}

src/material-experimental/mdc-radio/_radio-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242

4343
@mixin mat-mdc-radio-typography($config-or-theme) {
44-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
44+
$config: mat-get-typography-config($config-or-theme);
4545
@include mat-using-mdc-typography($config) {
4646
@include mdc-radio-without-ripple($query: $mat-typography-styles-query);
4747
@include mdc-form-field-core-styles($query: $mat-typography-styles-query);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
}
8080

8181
@mixin mat-mdc-slide-toggle-typography($config-or-theme) {
82-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
82+
$config: mat-get-typography-config($config-or-theme);
8383
@include mat-using-mdc-typography($config) {
8484
@include mdc-switch-without-ripple($query: $mat-typography-styles-query);
8585
@include mdc-form-field-core-styles($query: $mat-typography-styles-query);

src/material-experimental/mdc-snack-bar/_snack-bar-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535

3636
@mixin mat-mdc-snack-bar-typography($config-or-theme) {
37-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
37+
$config: mat-get-typography-config($config-or-theme);
3838
@include mat-using-mdc-typography($config) {
3939
@include mdc-snackbar-core-styles($query: $mat-typography-styles-query);
4040
}

src/material-experimental/mdc-table/_table-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
}
4444

4545
@mixin mat-mdc-table-typography($config-or-theme) {
46-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
46+
$config: mat-get-typography-config($config-or-theme);
4747
@include mat-using-mdc-typography($config) {
4848
@include mdc-data-table-core-styles($query: $mat-typography-styles-query);
4949
}

src/material-experimental/mdc-typography/_all-typography.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
@mixin angular-material-mdc-typography($config-or-theme: null) {
44
$config: if(mat-private-is-theme-object($config-or-theme),
5-
mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme)),
6-
$config-or-theme);
5+
mat-get-typography-config($config-or-theme), $config-or-theme);
76

87
// If no actual color configuration has been specified, create a default one.
98
@if $config == null {

src/material/checkbox/_checkbox-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
}
9898

9999
@mixin mat-checkbox-typography($config-or-theme) {
100-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
100+
$config: mat-get-typography-config($config-or-theme);
101101
.mat-checkbox {
102102
font-family: mat-font-family($config);
103103
}

src/material/chips/_chips-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ $mat-chip-remove-font-size: 18px;
8888
}
8989

9090
@mixin mat-chips-typography($config-or-theme) {
91-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
91+
$config: mat-get-typography-config($config-or-theme);
9292
.mat-chip {
9393
font-size: mat-font-size($config, body-2);
9494
font-weight: mat-font-weight($config, body-2);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
// Includes all of the typographic styles.
4141
@mixin angular-material-typography($config-or-theme: null) {
4242
$config: if(mat-private-is-theme-object($config-or-theme),
43-
mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme)),
43+
mat-get-typography-config($config-or-theme),
4444
$config-or-theme);
4545

4646
// If no actual color configuration has been specified, create a default one.

src/material/core/typography/_typography.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@
103103
// Adds the base typography styles, based on a config.
104104
/* stylelint-disable-next-line material/theme-mixin-api */
105105
@mixin mat-base-typography($config, $selector: '.mat-typography') {
106-
$config: mat-private-typography-normalized-config($config);
107-
108106
.mat-h1, .mat-headline, #{$selector} h1 {
109107
@include mat-typography-level-to-styles($config, headline);
110108
margin: 0 0 16px;

src/material/dialog/_dialog-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
@mixin mat-dialog-typography($config-or-theme) {
21-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
21+
$config: mat-get-typography-config($config-or-theme);
2222
.mat-dialog-title {
2323
@include mat-typography-level-to-styles($config, title);
2424
}

src/material/radio/_radio-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
}
7070

7171
@mixin mat-radio-typography($config-or-theme) {
72-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
72+
$config: mat-get-typography-config($config-or-theme);
7373
.mat-radio-button {
7474
font-family: mat-font-family($config);
7575
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
}
7575

7676
@mixin mat-slide-toggle-typography($config-or-theme) {
77-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
77+
$config: mat-get-typography-config($config-or-theme);
7878
.mat-slide-toggle-content {
7979
font-family: mat-font-family($config);
8080
}

src/material/snack-bar/_snack-bar-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525

2626
@mixin mat-snack-bar-typography($config-or-theme) {
27-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
27+
$config: mat-get-typography-config($config-or-theme);
2828
.mat-simple-snackbar {
2929
font: {
3030
family: mat-font-family($config, body-1);

src/material/table/_table-theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535

3636
@mixin mat-table-typography($config-or-theme) {
37-
$config: mat-private-typography-normalized-config(mat-get-typography-config($config-or-theme));
37+
$config: mat-get-typography-config($config-or-theme);
3838
.mat-table {
3939
font-family: mat-font-family($config);
4040
}

0 commit comments

Comments
 (0)