docs(component-api): remove hardcoded Carbon Svelte icon description

This commit is contained in:
metonym 2021-10-20 13:41:17 -07:00
commit 5a2865bd9d

View file

@ -8,21 +8,18 @@
}; };
import { import {
Link,
OutboundLink, OutboundLink,
StructuredList, StructuredList,
StructuredListHead, StructuredListHead,
StructuredListRow, StructuredListRow,
StructuredListCell, StructuredListCell,
StructuredListBody, StructuredListBody,
TooltipDefinition,
UnorderedList, UnorderedList,
ListItem, ListItem,
Tag, Tag,
CodeSnippet, CodeSnippet,
} from "carbon-components-svelte"; } from "carbon-components-svelte";
import InlineSnippet from "./InlineSnippet.svelte"; import InlineSnippet from "./InlineSnippet.svelte";
import Launch16 from "carbon-icons-svelte/lib/Launch16";
const mdn_api = "https://developer.mozilla.org/en-US/docs/Web/API/"; const mdn_api = "https://developer.mozilla.org/en-US/docs/Web/API/";
const typeMap = { const typeMap = {
@ -85,15 +82,7 @@
class="cell" class="cell"
style="z-index: {(prop.type || '').split(' | ').length - i}" style="z-index: {(prop.type || '').split(' | ').length - i}"
> >
{#if type.startsWith("typeof")} {#if type.startsWith("HTML")}
<TooltipDefinition
direction="top"
align="start"
tooltipText="{`From "carbon-icons-svelte"`}"
>
Carbon Svelte icon
</TooltipDefinition>
{:else if type.startsWith("HTML")}
<OutboundLink <OutboundLink
href="{mdn_api}{type}" href="{mdn_api}{type}"
style="white-space: nowrap" style="white-space: nowrap"