Skip to content

Commit

Permalink
fix(menu): collapse empty menu panel (#12211)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto authored and josephperrott committed Jul 18, 2018
1 parent 49ec9ca commit b23cecd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/menu/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ $mat-menu-submenu-indicator-size: 10px !default;
}
}

.mat-menu-content {
// `:not(:empty)` allows for the menu to collapse to 0x0 when it doesn't have content.
.mat-menu-content:not(:empty) {
padding-top: $mat-menu-vertical-padding;
padding-bottom: $mat-menu-vertical-padding;
}
Expand Down

0 comments on commit b23cecd

Please sign in to comment.