Skip to content

Commit 3181780

Browse files
authored
fix(material-experimental/mdc-menu): Use body1 typography for menu content (#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.
1 parent db18b40 commit 3181780

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/material-experimental/mdc-menu/_menu-theme.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

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

0 commit comments

Comments
 (0)