mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix: slottable labelText should correctly render (#1110)
This commit is contained in:
parent
33c1543bd0
commit
7c0086d00c
2 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{#if !inline && labelText}
|
{#if !inline && (labelText || $$slots.labelText)}
|
||||||
<label
|
<label
|
||||||
for="{id}"
|
for="{id}"
|
||||||
class:bx--label="{true}"
|
class:bx--label="{true}"
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if !inline && labelText}
|
{#if !inline && (labelText || $$slots.labelText)}
|
||||||
<label
|
<label
|
||||||
for="{id}"
|
for="{id}"
|
||||||
class:bx--label="{true}"
|
class:bx--label="{true}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue