mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(file-uploader): do not render empty element if labelTitle
, labelDescription
not provided (#1778)
Fixes #1775
This commit is contained in:
parent
baff07e012
commit
7ef8b73252
1 changed files with 16 additions and 12 deletions
|
@ -103,18 +103,22 @@
|
||||||
on:mouseenter
|
on:mouseenter
|
||||||
on:mouseleave
|
on:mouseleave
|
||||||
>
|
>
|
||||||
<p
|
{#if labelTitle}
|
||||||
class:bx--file--label="{true}"
|
<p
|
||||||
class:bx--label-description--disabled="{disabled}"
|
class:bx--file--label="{true}"
|
||||||
>
|
class:bx--label-description--disabled="{disabled}"
|
||||||
{labelTitle}
|
>
|
||||||
</p>
|
{labelTitle}
|
||||||
<p
|
</p>
|
||||||
class:bx--label-description="{true}"
|
{/if}
|
||||||
class:bx--label-description--disabled="{disabled}"
|
{#if labelDescription}
|
||||||
>
|
<p
|
||||||
{labelDescription}
|
class:bx--label-description="{true}"
|
||||||
</p>
|
class:bx--label-description--disabled="{disabled}"
|
||||||
|
>
|
||||||
|
{labelDescription}
|
||||||
|
</p>
|
||||||
|
{/if}
|
||||||
<FileUploaderButton
|
<FileUploaderButton
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
disableLabelChanges
|
disableLabelChanges
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue