Skip to content

Commit 43b89d8

Browse files
committed
fix: don't show empty node if condition doesn't satisfy
1 parent a58ee8a commit 43b89d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/progress-indicator/progress-indicator.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import { Step } from "./progress-indicator-step.interface";
4848
(click)="stepSelected.emit({ step: step, index: i })">
4949
{{step.text}}
5050
</p>
51-
<div class="bx--progress-text">
51+
<div class="bx--progress-text" *ngIf="!step.tooltip || step.optionalText">
5252
<p class="bx--progress-label" *ngIf="!step.tooltip" (click)="stepSelected.emit({ step: step, index: i })">{{step.text}}</p>
5353
<p *ngIf="step.optionalText" class="bx--progress-optional">{{step.optionalText}}</p>
5454
</div>

0 commit comments

Comments
 (0)