Skip to content

Commit

Permalink
fix(progress-step): fix label text if vertical is true (#1533)
Browse files Browse the repository at this point in the history
Fixes #1532
  • Loading branch information
brunnerh authored Dec 8, 2022
1 parent 7a98ec2 commit 75a69bb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/ProgressIndicator/ProgressStep.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@
{:else}
<CircleDash title="{description}" />
{/if}
<slot props="{{ class: 'bx--progress-label' }}">
<p class:bx--progress-label="{true}">{label}</p>
</slot>
{#if secondaryLabel}
<p class:bx--progress-optional="{true}">{secondaryLabel}</p>
{/if}
<div class:bx--progress-text="{true}">
<slot props="{{ class: 'bx--progress-label' }}">
<p class:bx--progress-label="{true}">{label}</p>
</slot>
{#if secondaryLabel}
<p class:bx--progress-optional="{true}">{secondaryLabel}</p>
{/if}
</div>
<span class:bx--progress-line="{true}"></span>
</button>
</li>

0 comments on commit 75a69bb

Please sign in to comment.