mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(number-input): slotted label should render correctly (#1212)
Fixes #1208
This commit is contained in:
parent
051a8702e3
commit
5e67c707d6
1 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@
|
||||||
class="{size && `bx--number--${size}`}"
|
class="{size && `bx--number--${size}`}"
|
||||||
>
|
>
|
||||||
{#if mobile}
|
{#if mobile}
|
||||||
{#if label}
|
{#if $$slots.label || label}
|
||||||
<label
|
<label
|
||||||
for="{id}"
|
for="{id}"
|
||||||
class:bx--label="{true}"
|
class:bx--label="{true}"
|
||||||
|
@ -243,7 +243,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
{#if label}
|
{#if $$slots.label || label}
|
||||||
<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