mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
docs: hide deprecated components, add "Disabled items" OverflowMenu example (#1167)
This commit is contained in:
parent
95a1dfa1af
commit
5bf16e42f7
16 changed files with 54 additions and 42 deletions
|
@ -17,7 +17,6 @@
|
|||
} from "carbon-components-svelte";
|
||||
import LogoGithub20 from "carbon-icons-svelte/lib/LogoGithub20";
|
||||
import Theme from "../components/Theme.svelte";
|
||||
import Footer from "../components/Footer.svelte";
|
||||
|
||||
const deprecated = ["ToggleSmall", "Icon"];
|
||||
const new_components = [];
|
||||
|
@ -104,7 +103,7 @@
|
|||
expanded="{$isActive($url('')) || $isActive($url('/components'))}"
|
||||
text="Components"
|
||||
>
|
||||
{#each components.children as child, i (child.path)}
|
||||
{#each components.children.filter((child) => !deprecated.includes(child.title)) as child, i (child.path)}
|
||||
<SideNavMenuItem
|
||||
text="{child.title}"
|
||||
href="{$url(child.path)}"
|
||||
|
@ -145,7 +144,6 @@
|
|||
</SideNavItems>
|
||||
</SideNav>
|
||||
<slot />
|
||||
<Footer />
|
||||
</Theme>
|
||||
|
||||
<style global>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue