From 52e7ecfe87e63903449acd2cc37c40d4e6cf2cee Mon Sep 17 00:00:00 2001 From: Eric Y Liu Date: Thu, 1 Apr 2021 14:39:08 -0700 Subject: [PATCH] feat(content-switcher): deprecate the light prop - docs: remove the light variant example --- docs/src/pages/components/ContentSwitcher.svx | 7 ------- src/ContentSwitcher/ContentSwitcher.svelte | 5 ++++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/src/pages/components/ContentSwitcher.svx b/docs/src/pages/components/ContentSwitcher.svx index ca8f14f3..fbd14f31 100644 --- a/docs/src/pages/components/ContentSwitcher.svx +++ b/docs/src/pages/components/ContentSwitcher.svx @@ -28,13 +28,6 @@ components: ["ContentSwitcher", "Switch"] -### Light variant - - - - - - ### Custom switch slot diff --git a/src/ContentSwitcher/ContentSwitcher.svelte b/src/ContentSwitcher/ContentSwitcher.svelte index cb85c7fa..f7cc803a 100644 --- a/src/ContentSwitcher/ContentSwitcher.svelte +++ b/src/ContentSwitcher/ContentSwitcher.svelte @@ -6,7 +6,10 @@ /** Set the selected index of the switch item */ export let selectedIndex = 0; - /** Set to `true` to enable the light variant */ + /** + * Set to `true` to enable the light variant + * @deprecated + */ export let light = false; /**