fix(label-text): correctly render "labelText" slots (#949)

Fixes #944
This commit is contained in:
Eric Liu 2021-12-28 12:59:33 -08:00 committed by GitHub
commit a32bcbccd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -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}