feat: make titleText slottable in MultiSelect, ComboBox (#1750)

Closes #1747
This commit is contained in:
Sachin 2023-06-11 18:45:55 -07:00 committed by GitHub
commit 0b4f19c87e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 4 deletions

View file

@ -218,13 +218,15 @@
/>
<div class:bx--list-box__wrapper="{true}">
{#if titleText}
{#if titleText || $$slots.titleText}
<label
for="{id}"
class:bx--label="{true}"
class:bx--label--disabled="{disabled}"
>
<slot name="titleText">
{titleText}
</slot>
</label>
{/if}
<ListBox