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 49738cf599
commit d7d7559402
1 changed files with 3 additions and 1 deletions

View File

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