mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +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:mouseleave
|
||||
>
|
||||
<p
|
||||
class:bx--file--label="{true}"
|
||||
class:bx--label-description--disabled="{disabled}"
|
||||
>
|
||||
{labelTitle}
|
||||
</p>
|
||||
<p
|
||||
class:bx--label-description="{true}"
|
||||
class:bx--label-description--disabled="{disabled}"
|
||||
>
|
||||
{labelDescription}
|
||||
</p>
|
||||
{#if labelTitle}
|
||||
<p
|
||||
class:bx--file--label="{true}"
|
||||
class:bx--label-description--disabled="{disabled}"
|
||||
>
|
||||
{labelTitle}
|
||||
</p>
|
||||
{/if}
|
||||
{#if labelDescription}
|
||||
<p
|
||||
class:bx--label-description="{true}"
|
||||
class:bx--label-description--disabled="{disabled}"
|
||||
>
|
||||
{labelDescription}
|
||||
</p>
|
||||
{/if}
|
||||
<FileUploaderButton
|
||||
disabled="{disabled}"
|
||||
disableLabelChanges
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue