Skip to content

Commit

Permalink
fix(material-experimental/mdc-menu): Use body1 typography for menu co…
Browse files Browse the repository at this point in the history
…ntent (#23657)

We already fixed this for menu items, but MDC also sets the wrong
typograph level on the menu content element, which can bleed through
into people's custom menu content.

(cherry picked from commit 3181780)
  • Loading branch information
mmalerba committed Sep 30, 2021
1 parent f9a6e47 commit b72c177
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/material-experimental/mdc-menu/_menu-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@

// MDC uses the `subtitle1` level for list items, but the spec shows `body1` as the correct
// level.
&,
.mat-mdc-menu-item .mdc-list-item__primary-text {
@include mdc-typography.typography(body1, $query: mdc-helpers.$mat-typography-styles-query);
}
Expand Down

0 comments on commit b72c177

Please sign in to comment.