Skip to content

Commit

Permalink
fix(stepper): vertical step header labels not centered on IE (#13262)
Browse files Browse the repository at this point in the history
Fixes the step header circle labels not being completely centered in IE, because the step header only uses `max-height`.
  • Loading branch information
crisbeto authored and jelbourn committed Sep 25, 2018
1 parent 96e670f commit 40fb5cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/stepper/stepper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ $mat-stepper-line-gap: 8px !default;
display: flex;
align-items: center;
padding: $mat-stepper-side-gap;
max-height: $mat-stepper-label-header-height;

// We can't use `max-height` here, because it breaks the flexbox centering in IE.
height: $mat-stepper-label-header-height;

.mat-step-icon {
margin-right: $mat-vertical-stepper-content-margin - $mat-stepper-side-gap;
Expand Down

0 comments on commit 40fb5cb

Please sign in to comment.