mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
docs(component-api): remove hardcoded Carbon Svelte icon description
This commit is contained in:
parent
ad7474f3f3
commit
5a2865bd9d
1 changed files with 1 additions and 12 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue