mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11: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}`}"
|
||||
>
|
||||
{#if mobile}
|
||||
{#if label}
|
||||
{#if $$slots.label || label}
|
||||
<label
|
||||
for="{id}"
|
||||
class:bx--label="{true}"
|
||||
|
@ -243,7 +243,7 @@
|
|||
</button>
|
||||
</div>
|
||||
{:else}
|
||||
{#if label}
|
||||
{#if $$slots.label || label}
|
||||
<label
|
||||
for="{id}"
|
||||
class:bx--label="{true}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue