Skip to content

Commit

Permalink
fix(material-experimental/mdc-select): target correct element with ty…
Browse files Browse the repository at this point in the history
…pography (#24258)

Targets the MDC select host node instead of just the value with the typography mixin. The previous approach would've broken any overrides and it didn't cover the select placeholder.

(cherry picked from commit f5d74da)
  • Loading branch information
crisbeto authored and andrewseguin committed Feb 23, 2022
1 parent 74bae85 commit c9a1547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material-experimental/mdc-select/_select-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
@include mdc-list.list-base(mdc-helpers.$mat-typography-styles-query);
}

.mat-mdc-select-value {
.mat-mdc-select {
@include mdc-typography.typography(body1, $query: mdc-helpers.$mat-typography-styles-query);
}
}
Expand Down

0 comments on commit c9a1547

Please sign in to comment.