diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 9c2906bf..d95ba4a1 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -2609,7 +2609,7 @@ None. | buttonRef | No | let | Yes | null | HTMLButtonElement | null | Obtain a reference to the trigger button element | | icon | No | let | Yes | typeof import("svelte").SvelteComponent | undefined | Specify the icon to render.
Defaults to `<OverflowMenuVertical />` | | open | No | let | Yes | boolean | false | Set to `true` to open the menu | -| size | No | let | No | "sm" | "xl" | undefined | Specify the size of the overflow menu | +| size | No | let | No | "sm" | "lg" | undefined | Specify the size of the overflow menu | | direction | No | let | No | "top" | "bottom" | "bottom" | Specify the direction of the overflow menu relative to the button | | light | No | let | No | boolean | false | Set to `true` to enable the light variant | | flipped | No | let | No | boolean | false | Set to `true` to flip the menu relative to the button | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index a8b7f796..89e76e81 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -7984,7 +7984,7 @@ "name": "size", "kind": "let", "description": "Specify the size of the overflow menu", - "type": "\"sm\" | \"xl\"", + "type": "\"sm\" | \"lg\"", "isFunction": false, "isFunctionDeclaration": false, "isRequired": false, diff --git a/docs/src/pages/components/OverflowMenu.svx b/docs/src/pages/components/OverflowMenu.svx index d92f73a9..fb0b4965 100644 --- a/docs/src/pages/components/OverflowMenu.svx +++ b/docs/src/pages/components/OverflowMenu.svx @@ -42,7 +42,7 @@ Set `flipped` to `true` for the menu to be positioned to the left of the button. -## Extra-large size +## Large size diff --git a/src/OverflowMenu/OverflowMenu.svelte b/src/OverflowMenu/OverflowMenu.svelte index fbc331fd..892888f4 100644 --- a/src/OverflowMenu/OverflowMenu.svelte +++ b/src/OverflowMenu/OverflowMenu.svelte @@ -5,7 +5,7 @@ /** * Specify the size of the overflow menu - * @type {"sm" | "xl"} + * @type {"sm" | "lg"} */ export let size = undefined; @@ -199,7 +199,7 @@ class:bx--overflow-menu--open="{open}" class:bx--overflow-menu--light="{light}" class:bx--overflow-menu--sm="{size === 'sm'}" - class:bx--overflow-menu--xl="{size === 'xl'}" + class:bx--overflow-menu--lg="{size === 'lg'}" {...$$restProps} on:click on:click="{({ target }) => { @@ -254,7 +254,7 @@ class:bx--overflow-menu-options--open="{open}" class:bx--overflow-menu-options--light="{light}" class:bx--overflow-menu-options--sm="{size === 'sm'}" - class:bx--overflow-menu-options--xl="{size === 'xl'}" + class:bx--overflow-menu-options--lg="{size === 'lg'}" class:bx--breadcrumb-menu-options="{!!ctxBreadcrumbItem}" class="{menuOptionsClass}" > diff --git a/tests/OverflowMenu.test.svelte b/tests/OverflowMenu.test.svelte index b12e1b18..3bb6ad50 100644 --- a/tests/OverflowMenu.test.svelte +++ b/tests/OverflowMenu.test.svelte @@ -34,7 +34,7 @@ - +