Skip to content

Commit 771b4ba

Browse files
crisbetoandrewseguin
authored andcommitted
fix(material-experimental/mdc-menu): missing padding after latest canary release (#19548)
Fixes the MDC menu item not having side padding anymore. It seems like this broke after the update to the latest canary version, because the padding was moved into a different mixin.
1 parent 1d97b62 commit 771b4ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
// Note that we include this private mixin, because the public
3939
// one adds a bunch of styles that we aren't using for the menu.
4040
@include mdc-list-item-base_;
41+
@include mdc-list-list-item-padding-variant(
42+
$mdc-list-textual-variant-config, $query: $mat-base-styles-query);
4143

4244
// MDC's menu items are `<li>` nodes which don't need resets, however ours
4345
// can be anything, including buttons, so we need to do the reset ourselves.

0 commit comments

Comments
 (0)