mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
refactor: use icons from carbon-icons-svelte@11
(#1227)
* chore: update ignore rules, remove unused files * refactor(icons): use icons from carbon-icons-svelte@11 * docs(time-picker): fix default value * chore: upgrade carbon-icons-svelte to v11 * docs: update examples to use icons from carbon-icons-svelte@11 * docs: update number of icons [ci skip]
This commit is contained in:
parent
755a8aa5bc
commit
ba58ba8f00
176 changed files with 1410 additions and 2487 deletions
|
@ -31,10 +31,11 @@
|
|||
export let menuOptionsClass = undefined;
|
||||
|
||||
/**
|
||||
* Specify the icon to render
|
||||
* Specify the icon to render.
|
||||
* Defaults to `<OverflowMenuVertical />`
|
||||
* @type {typeof import("svelte").SvelteComponent}
|
||||
*/
|
||||
export let icon = OverflowMenuVertical16;
|
||||
export let icon = OverflowMenuVertical;
|
||||
|
||||
/**
|
||||
* Specify the icon class
|
||||
|
@ -61,8 +62,8 @@
|
|||
afterUpdate,
|
||||
} from "svelte";
|
||||
import { writable } from "svelte/store";
|
||||
import OverflowMenuVertical16 from "../icons/OverflowMenuVertical16.svelte";
|
||||
import OverflowMenuHorizontal16 from "../icons/OverflowMenuHorizontal16.svelte";
|
||||
import OverflowMenuVertical from "../icons/OverflowMenuVertical.svelte";
|
||||
import OverflowMenuHorizontal from "../icons/OverflowMenuHorizontal.svelte";
|
||||
|
||||
const ctxBreadcrumbItem = getContext("BreadcrumbItem");
|
||||
const dispatch = createEventDispatcher();
|
||||
|
@ -75,7 +76,7 @@
|
|||
let onMountAfterUpdate = true;
|
||||
|
||||
$: if (ctxBreadcrumbItem) {
|
||||
icon = OverflowMenuHorizontal16;
|
||||
icon = OverflowMenuHorizontal;
|
||||
}
|
||||
|
||||
setContext("OverflowMenu", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue