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}
<div class:bx--progress-text="{true}">
<slot props="{{ class: 'bx--progress-label' }}"> <slot props="{{ class: 'bx--progress-label' }}">
<p class:bx--progress-label="{true}">{label}</p> <p class:bx--progress-label="{true}">{label}</p>
</slot> </slot>
{#if secondaryLabel} {#if secondaryLabel}
<p class:bx--progress-optional="{true}">{secondaryLabel}</p> <p class:bx--progress-optional="{true}">{secondaryLabel}</p>
{/if} {/if}
</div>
<span class:bx--progress-line="{true}"></span> <span class:bx--progress-line="{true}"></span>
</button> </button>
</li> </li>