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 93b36b3 commit 6f5dcd5Copy full SHA for 6f5dcd5
src/lib/core/style/_menu-common.scss
@@ -13,11 +13,15 @@ $mat-menu-side-padding: 16px !default;
13
$mat-menu-icon-margin: 16px !default;
14
15
16
-@mixin mat-menu-base($elevation) {
17
- @include mat-elevation($elevation);
+@mixin mat-menu-base($default-elevation) {
18
min-width: $mat-menu-overlay-min-width;
19
max-width: $mat-menu-overlay-max-width;
20
+ // Allow elevation to be overwritten.
21
+ &:not([class*='mat-elevation-z']) {
22
+ @include mat-elevation($default-elevation);
23
+ }
24
+
25
overflow: auto;
26
-webkit-overflow-scrolling: touch; // for momentum scroll on mobile
27
}
0 commit comments