mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 20:09:35 +00:00
chore(tooltip-icon): rename slot to "tooltipText"
This commit is contained in:
parent
04b474675f
commit
f1fa61e30a
5 changed files with 20 additions and 20 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue