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

@ -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": "{}"

View file

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