mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
commit
a58be75648
10 changed files with 49 additions and 82 deletions
|
@ -285,7 +285,7 @@
|
|||
</ListBoxField>
|
||||
{#if open}
|
||||
<ListBoxMenu aria-label="{ariaLabel}" id="{id}">
|
||||
{#each filteredItems as item, i (item.id || i)}
|
||||
{#each filteredItems as item, i (item.id)}
|
||||
<ListBoxMenuItem
|
||||
id="{item.id}"
|
||||
active="{selectedIndex === i || selectedId === item.id}"
|
||||
|
|
|
@ -235,7 +235,7 @@
|
|||
</button>
|
||||
{#if open}
|
||||
<ListBoxMenu aria-labelledby="{id}" id="{id}">
|
||||
{#each items as item, i (item.id || i)}
|
||||
{#each items as item, i (item.id)}
|
||||
<ListBoxMenuItem
|
||||
id="{item.id}"
|
||||
active="{selectedIndex === i || selectedId === item.id}"
|
||||
|
|
|
@ -420,7 +420,7 @@
|
|||
</ListBoxField>
|
||||
{#if open}
|
||||
<ListBoxMenu aria-label="{ariaLabel}" id="{id}">
|
||||
{#each filterable ? filteredItems : sortedItems as item, i (item.id || i)}
|
||||
{#each filterable ? filteredItems : sortedItems as item, i (item.id)}
|
||||
<ListBoxMenuItem
|
||||
id="{item.id}"
|
||||
active="{item.checked}"
|
||||
|
|
|
@ -32,9 +32,9 @@
|
|||
/**
|
||||
* Specify the platform name
|
||||
* Alternatively, use the named slot "platform" (e.g. <span slot="platform">...</span>)
|
||||
* @type {string} [platformName]
|
||||
* @type {string} [platformName=""]
|
||||
*/
|
||||
export let platformName = undefined;
|
||||
export let platformName = "";
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML anchor element
|
||||
|
|
|
@ -27,8 +27,6 @@
|
|||
on:click
|
||||
>
|
||||
<slot>
|
||||
{#if icon}
|
||||
<svelte:component this="{icon}" />
|
||||
{/if}
|
||||
<svelte:component this="{icon}" />
|
||||
</slot>
|
||||
</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue