Skip to content

Commit

Permalink
fix(select): icons inside option not centered (#9982)
Browse files Browse the repository at this point in the history
Fixes `mat-icon` instances inside a `mat-option` not being centered vertically.

Fixes #9978.
  • Loading branch information
crisbeto authored and tinayuangao committed Feb 20, 2018
1 parent a9c21b6 commit 7c123b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions src/lib/core/style/_menu-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ $mat-menu-icon-margin: 16px !default;

.mat-icon {
margin-right: $mat-menu-icon-margin;
vertical-align: middle;

[dir='rtl'] & {
margin-left: $mat-menu-icon-margin;
Expand Down
4 changes: 0 additions & 4 deletions src/lib/menu/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ $mat-menu-submenu-indicator-size: 10px !default;
@include mat-button-reset();
@include mat-menu-item-base();
position: relative;

.mat-icon {
vertical-align: middle;
}
}

.mat-menu-item-submenu-trigger {
Expand Down

0 comments on commit 7c123b8

Please sign in to comment.