Skip to content

Commit 38c9104

Browse files
committed
fixup! refactor(material/theming): normalize config in all typography mixins for mdc components
1 parent 6d356c9 commit 38c9104

File tree

21 files changed

+46
-23
lines changed

21 files changed

+46
-23
lines changed

src/material-experimental/mdc-autocomplete/_autocomplete-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
}
1414

1515
@mixin typography($config-or-theme) {
16-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
16+
$config: typography.private-typography-to-2018-config(
17+
theming.get-typography-config($config-or-theme));
1718
@include mdc-helpers.mat-using-mdc-typography($config) {
1819
@include mdc-menu-surface.core-styles(mdc-helpers.$mat-typography-styles-query);
1920

src/material-experimental/mdc-button/_button-theme.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ $mat-fab-state-target: '.mdc-fab__ripple';
190190
}
191191

192192
@mixin typography($config-or-theme) {
193-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
193+
$config: typography.private-typography-to-2018-config(
194+
theming.get-typography-config($config-or-theme));
194195
@include mdc-helpers.mat-using-mdc-typography($config) {
195196
@include mdc-button.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
196197
}
@@ -282,7 +283,8 @@ $mat-fab-state-target: '.mdc-fab__ripple';
282283
}
283284

284285
@mixin fab-typography($config-or-theme) {
285-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
286+
$config: typography.private-typography-to-2018-config(
287+
theming.get-typography-config($config-or-theme));
286288
@include mdc-helpers.mat-using-mdc-typography($config) {
287289
@include mdc-fab.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
288290
}
@@ -351,7 +353,8 @@ $mat-fab-state-target: '.mdc-fab__ripple';
351353
}
352354

353355
@mixin icon-button-typography($config-or-theme) {
354-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
356+
$config: typography.private-typography-to-2018-config(
357+
theming.get-typography-config($config-or-theme));
355358
@include mdc-helpers.mat-using-mdc-typography($config) {
356359
@include mdc-icon-button.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
357360
}

src/material-experimental/mdc-card/_card-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
}
3636

3737
@mixin typography($config-or-theme) {
38-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
38+
$config: typography.private-typography-to-2018-config(
39+
theming.get-typography-config($config-or-theme));
3940
@include mdc-helpers.mat-using-mdc-typography($config) {
4041
@include mdc-card.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
4142

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@
109109
}
110110

111111
@mixin typography($config-or-theme) {
112-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
112+
$config: typography.private-typography-to-2018-config(
113+
theming.get-typography-config($config-or-theme));
113114
@include mdc-helpers.mat-using-mdc-typography($config) {
114115
@include mdc-checkbox.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
115116
@include mdc-form-field.core-styles($query: mdc-helpers.$mat-typography-styles-query);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
}
7777

7878
@mixin typography($config-or-theme) {
79-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
79+
$config: typography.private-typography-to-2018-config(
80+
theming.get-typography-config($config-or-theme));
8081
@include mdc-chips.set-core-styles($query: mdc-helpers.$mat-typography-styles-query);
8182
@include mdc-helpers.mat-using-mdc-typography($config) {
8283
@include mdc-chips.without-ripple($query: mdc-helpers.$mat-typography-styles-query);

src/material-experimental/mdc-core/option/_optgroup-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
}
2020

2121
@mixin typography($config-or-theme) {
22-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
22+
$config: typography.private-typography-to-2018-config(
23+
theming.get-typography-config($config-or-theme));
2324
}
2425

2526
@mixin density($config-or-theme) {

src/material-experimental/mdc-core/option/_option-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
}
5656

5757
@mixin typography($config-or-theme) {
58-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
58+
$config: typography.private-typography-to-2018-config(
59+
theming.get-typography-config($config-or-theme));
5960

6061
@include mdc-helpers.mat-using-mdc-typography($config) {
6162
// MDC uses the `subtitle1` level for list items, but the spec shows `body1` as the correct

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
}
1212

1313
@mixin typography($config-or-theme) {
14-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
14+
$config: typography.private-typography-to-2018-config(
15+
theming.get-typography-config($config-or-theme));
1516
@include mdc-helpers.mat-using-mdc-typography($config) {
1617
@include mdc-dialog.core-styles($query: mdc-helpers.$mat-typography-styles-query);
1718
}

src/material-experimental/mdc-form-field/_form-field-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
}
6565

6666
@mixin typography($config-or-theme) {
67-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
67+
$config: typography.private-typography-to-2018-config(
68+
theming.get-typography-config($config-or-theme));
6869
@include mdc-helpers.mat-using-mdc-typography($config) {
6970
@include mdc-textfield.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
7071
@include mdc-floating-label.core-styles($query: mdc-helpers.$mat-typography-styles-query);

src/material-experimental/mdc-input/_input-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
}
99

1010
@mixin typography($config-or-theme) {
11-
$config: typography.typography-to-2018-config(theming.get-typography-config($config-or-theme));
11+
$config: typography.private-typography-to-2018-config(
12+
theming.get-typography-config($config-or-theme));
1213
@include mdc-helpers.mat-using-mdc-typography($config) {}
1314
}
1415

0 commit comments

Comments
 (0)