chore(tooltip-icon): rename slot to "tooltipText"

This commit is contained in:
Eric Liu 2021-02-04 17:19:48 -08:00
commit f1fa61e30a
5 changed files with 20 additions and 20 deletions

View file

@ -1,7 +1,7 @@
<script>
/**
* Specify the tooltip text.
* Alternatively, use the "text" slot
* Alternatively, use the "tooltipText" slot
*/
export let tooltipText = "";
@ -59,8 +59,8 @@
hidden = false;
}}"
>
<span id="{id}" class:bx--assistive-text="{true}"
><slot name="text">{tooltipText}</slot></span
>
<span id="{id}" class:bx--assistive-text="{true}">
<slot name="tooltipText">{tooltipText}</slot>
</span>
<slot />
</button>