mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +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
|
@ -9746,7 +9746,7 @@
|
|||
{
|
||||
"name": "tooltipText",
|
||||
"kind": "let",
|
||||
"description": "Specify the tooltip text.\nAlternatively, use the \"text\" slot",
|
||||
"description": "Specify the tooltip text.\nAlternatively, use the \"tooltipText\" slot",
|
||||
"type": "string",
|
||||
"value": "\"\"",
|
||||
"isFunction": false,
|
||||
|
@ -9797,7 +9797,7 @@
|
|||
"slots": [
|
||||
{ "name": "__default__", "default": true, "slot_props": "{}" },
|
||||
{
|
||||
"name": "text",
|
||||
"name": "tooltipText",
|
||||
"default": false,
|
||||
"fallback": "{tooltipText}",
|
||||
"slot_props": "{}"
|
||||
|
|
|
@ -23,6 +23,6 @@
|
|||
Use the "text" slot to customize the tooltip text.
|
||||
|
||||
<TooltipIcon>
|
||||
<span slot="text" style="color: red">Carbon is an open source design system by IBM.</span>
|
||||
<span slot="tooltipText" style="color: red">Carbon is an open source design system by IBM.</span>
|
||||
<Carbon24 />
|
||||
</TooltipIcon>
|
Loading…
Add table
Add a link
Reference in a new issue