Skip to content

Commit b72c177

Browse files
committed
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. (cherry picked from commit 3181780)
1 parent f9a6e47 commit b72c177

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)