Skip to content

Commit f8ffaf2

Browse files
committed
fixup! fix(material-experimental/mdc-typography): update incorrect levels
1 parent 9ea2b49 commit f8ffaf2

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@
2020
// Note that we include this private mixin, because the public one adds
2121
// a bunch of styles that we aren't using for the autocomplete panel.
2222
@include mdc-list-base_($mat-typography-styles-query);
23-
24-
// MDC uses the `subtitle1` level for list items, but the spec shows `body1` as the correct
25-
// level.
26-
.mat-mdc-option {
27-
@include mdc-typography(body1, $query: $mat-typography-styles-query);
28-
}
2923
}
3024
}
3125
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@
4343

4444
@mixin mat-mdc-option-typography($config-or-theme) {
4545
$config: mat-get-typography-config($config-or-theme);
46+
47+
@include mat-using-mdc-typography($config) {
48+
// MDC uses the `subtitle1` level for list items, but the spec shows `body1` as the correct
49+
// level. Class is repeated for increased specificity.
50+
.mat-mdc-option {
51+
@include mdc-typography(body1, $query: $mat-typography-styles-query);
52+
}
53+
}
4654
}
4755

4856
@mixin mat-mdc-option-density($config-or-theme) {

src/material-experimental/mdc-select/_select-theme.scss

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,10 @@
8989
// Note that we include this private mixin, because the public one adds
9090
// a bunch of styles that we aren't using for the select panel.
9191
@include mdc-list-base_($mat-typography-styles-query);
92+
}
9293

93-
// MDC uses the `subtitle1` level for list items, but the spec shows `body1` as the correct
94-
// level.
95-
.mat-mdc-option {
96-
@include mdc-typography(body1, $query: $mat-typography-styles-query);
97-
}
94+
.mat-mdc-select-value {
95+
@include mdc-typography(body1, $query: $mat-typography-styles-query);
9896
}
9997
}
10098
}

0 commit comments

Comments
 (0)