Skip to content

Commit

Permalink
fix(menu): incorrect text alignment in IE/Edge
Browse files Browse the repository at this point in the history
Fixes the text being centered in menu items on IE and Edge. It was due to the fact that they don't support `text-align: start/end`.

Fixes angular#3254.
  • Loading branch information
crisbeto committed Feb 23, 2017
1 parent a4da08b commit 5866df7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/core/style/_menu-common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,17 @@ $mat-menu-side-padding: 16px !default;

font-size: $mat-menu-font-size;
font-family: $mat-font-family;
text-align: start;
text-align: left;
text-decoration: none; // necessary to reset anchor tags

&[disabled] {
cursor: default;
}

[dir='rtl'] & {
text-align: right;
}

.mat-icon {
margin-right: 16px;

Expand Down

0 comments on commit 5866df7

Please sign in to comment.