Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(menu): make it easier to override elevation #5873

Merged
merged 1 commit into from
Jul 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/lib/core/style/_menu-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ $mat-menu-side-padding: 16px !default;
$mat-menu-icon-margin: 16px !default;


@mixin mat-menu-base($elevation) {
@include mat-elevation($elevation);
@mixin mat-menu-base($default-elevation) {
min-width: $mat-menu-overlay-min-width;
max-width: $mat-menu-overlay-max-width;

// Allow elevation to be overwritten.
&:not([class*='mat-elevation-z']) {
@include mat-elevation($default-elevation);
}

overflow: auto;
-webkit-overflow-scrolling: touch; // for momentum scroll on mobile
}
Expand Down