Don't show checkbox label if no label specified

This commit is contained in:
Andrew Kingston 2022-02-24 09:12:14 +00:00
parent 51153565d8
commit eae947e43f
1 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,9 @@
<use xlink:href="#spectrum-css-icon-Dash100" />
</svg>
</span>
<span class="spectrum-Checkbox-label">{text || ""}</span>
{#if text}
<span class="spectrum-Checkbox-label">{text}</span>
{/if}
</label>
<style>