docs: add breaking change notice to ComboBox, Dropdown docs

This commit is contained in:
Eric Liu 2022-01-18 19:28:45 -08:00
commit eb73d8cf67
2 changed files with 14 additions and 2 deletions

View file

@ -1,8 +1,14 @@
<script>
import { ComboBox } from "carbon-components-svelte";
import { ComboBox, InlineNotification } from "carbon-components-svelte";
import Preview from "../../components/Preview.svelte";
</script>
<InlineNotification svx-ignore title="Note:" kind="info" hideCloseButton>
<div class="body-short-01">
Since version 0.53, <strong>selectedIndex</strong> has been replaced with <strong>selectedId</strong>.
</div>
</InlineNotification>
### Default
<ComboBox titleText="Contact" placeholder="Select contact method"

View file

@ -3,10 +3,16 @@ components: ["Dropdown", "DropdownSkeleton"]
---
<script>
import { Dropdown, DropdownSkeleton } from "carbon-components-svelte";
import { Dropdown, DropdownSkeleton, InlineNotification } from "carbon-components-svelte";
import Preview from "../../components/Preview.svelte";
</script>
<InlineNotification svx-ignore title="Note:" kind="info" hideCloseButton>
<div class="body-short-01">
Since version 0.53, <strong>selectedIndex</strong> has been replaced with <strong>selectedId</strong>.
</div>
</InlineNotification>
### Default
<Dropdown titleText="Contact" selectedId="0" items="{[{id: "0", text: "Slack"},