mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
parent
d5a6b5873b
commit
a32bcbccd7
5 changed files with 5 additions and 5 deletions
|
@ -82,7 +82,7 @@
|
|||
class:bx--date-picker-container="{true}"
|
||||
class:bx--date-picker--nolabel="{!labelText}"
|
||||
>
|
||||
{#if labelText}
|
||||
{#if labelText || $$slots.labelText}
|
||||
<label
|
||||
for="{id}"
|
||||
class:bx--label="{true}"
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
on:mouseleave
|
||||
class:bx--form-item="{true}"
|
||||
>
|
||||
{#if labelText && !hideLabel}
|
||||
{#if (labelText || $$slots.labelText) && !hideLabel}
|
||||
<label
|
||||
for="{id}"
|
||||
class:bx--label="{true}"
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
class:bx--select--light="{light}"
|
||||
>
|
||||
<div class:bx--time-picker__input="{true}">
|
||||
{#if labelText}
|
||||
{#if labelText || $$slots.labelText}
|
||||
<label
|
||||
for="{id}"
|
||||
class:bx--label="{true}"
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
on:mouseenter
|
||||
on:mouseleave
|
||||
>
|
||||
{#if labelText}
|
||||
{#if labelText || $$slots.labelText}
|
||||
<label
|
||||
for="{id}"
|
||||
class:bx--label="{true}"
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
class:bx--toggle__label="{true}"
|
||||
class:bx--skeleton="{true}"
|
||||
>
|
||||
{#if labelText}
|
||||
{#if labelText || $$slots.labelText}
|
||||
<span class:bx--toggle__label-text="{true}">
|
||||
<slot name="labelText">
|
||||
{labelText}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue