fix(progress-step): fix label text if vertical is true (#1533)

Fixes #1532
This commit is contained in:
brunnerh 2022-12-08 05:03:34 +01:00 committed by GitHub
commit 75a69bbfc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,12 +95,14 @@
{:else} {:else}
<CircleDash title="{description}" /> <CircleDash title="{description}" />
{/if} {/if}
<slot props="{{ class: 'bx--progress-label' }}"> <div class:bx--progress-text="{true}">
<p class:bx--progress-label="{true}">{label}</p> <slot props="{{ class: 'bx--progress-label' }}">
</slot> <p class:bx--progress-label="{true}">{label}</p>
{#if secondaryLabel} </slot>
<p class:bx--progress-optional="{true}">{secondaryLabel}</p> {#if secondaryLabel}
{/if} <p class:bx--progress-optional="{true}">{secondaryLabel}</p>
{/if}
</div>
<span class:bx--progress-line="{true}"></span> <span class:bx--progress-line="{true}"></span>
</button> </button>
</li> </li>