Skip to content

Commit 60707b3

Browse files
crisbetokara
authored andcommitted
fix(stepper): don't grey out non-linear steps (#7479)
Fixes #7260.
1 parent 5b7982f commit 60707b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/stepper/stepper-horizontal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[icon]="_getIndicatorType(i)"
1212
[label]="step.stepLabel || step.label"
1313
[selected]="selectedIndex === i"
14-
[active]="step.completed || selectedIndex === i"
14+
[active]="step.completed || selectedIndex === i || !linear"
1515
[optional]="step.optional">
1616
</mat-step-header>
1717
<div *ngIf="!isLast" class="mat-stepper-horizontal-line"></div>

src/lib/stepper/stepper-vertical.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[icon]="_getIndicatorType(i)"
1111
[label]="step.stepLabel || step.label"
1212
[selected]="selectedIndex === i"
13-
[active]="step.completed || selectedIndex === i"
13+
[active]="step.completed || selectedIndex === i || !linear"
1414
[optional]="step.optional">
1515
</mat-step-header>
1616

0 commit comments

Comments
 (0)