Skip to content

Commit

Permalink
fix(stepper): don't grey out non-linear steps
Browse files Browse the repository at this point in the history
No longer displays steps as disabled in non-linear mode. Previously they would be greyed-out, causing them to look disabled even though they're clickable.

Fixes angular#7260.
  • Loading branch information
crisbeto committed Oct 2, 2017
1 parent 01622b1 commit c4410c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/stepper/stepper-horizontal.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[icon]="_getIndicatorType(i)"
[label]="step.stepLabel || step.label"
[selected]="selectedIndex === i"
[active]="step.completed || selectedIndex === i"
[active]="step.completed || selectedIndex === i || !linear"
[optional]="step.optional">
</mat-step-header>
<div *ngIf="!isLast" class="mat-stepper-horizontal-line"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/stepper/stepper-vertical.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[icon]="_getIndicatorType(i)"
[label]="step.stepLabel || step.label"
[selected]="selectedIndex === i"
[active]="step.completed || selectedIndex === i"
[active]="step.completed || selectedIndex === i || !linear"
[optional]="step.optional">
</mat-step-header>

Expand Down

0 comments on commit c4410c3

Please sign in to comment.