Skip to content

Commit e022920

Browse files
authored
Add back secondary as default variant for MenuButton (#2539)
1 parent c5ba902 commit e022920

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/lib/holocene/menu/menu-button.svelte

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { twMerge as merge } from 'tailwind-merge';
44
55
import Badge from '$lib/holocene/badge.svelte';
6+
import type { ButtonStyles } from '$lib/holocene/button.svelte';
67
import Button, {
78
type ButtonWithoutHrefProps,
89
} from '$lib/holocene/button.svelte';
@@ -30,6 +31,7 @@
3031
export let hasIndicator = false;
3132
export let id: string = null;
3233
export let label: string = null;
34+
export let variant: ButtonStyles['variant'] = 'secondary';
3335
3436
const dispatch = createEventDispatcher<{ click: { open: boolean } }>();
3537
const { open, menuElement } = getContext<MenuContext>(MENU_CONTEXT);
@@ -85,6 +87,7 @@
8587
aria-controls={controls}
8688
aria-expanded={$open}
8789
aria-label={label}
90+
{variant}
8891
class={merge(className)}
8992
{...$$restProps}
9093
>

0 commit comments

Comments
 (0)