We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ec9ca commit b23cecdCopy full SHA for b23cecd
src/lib/menu/menu.scss
@@ -19,7 +19,8 @@ $mat-menu-submenu-indicator-size: 10px !default;
19
}
20
21
22
-.mat-menu-content {
+// `:not(:empty)` allows for the menu to collapse to 0x0 when it doesn't have content.
23
+.mat-menu-content:not(:empty) {
24
padding-top: $mat-menu-vertical-padding;
25
padding-bottom: $mat-menu-vertical-padding;
26
0 commit comments