From e5e5b6cde618988ea454d5a4bf7c554b2790fb1e Mon Sep 17 00:00:00 2001 From: Laura Whitaker Date: Mon, 30 Sep 2024 15:00:13 -0600 Subject: [PATCH 1/4] Fix centered option for MenuItem --- src/lib/holocene/menu/menu-item.svelte | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/lib/holocene/menu/menu-item.svelte b/src/lib/holocene/menu/menu-item.svelte index e0eb51514..4dabcbfa4 100644 --- a/src/lib/holocene/menu/menu-item.svelte +++ b/src/lib/holocene/menu/menu-item.svelte @@ -111,6 +111,7 @@ class={merge('menu-item', 'm-1', 'px-3', 'py-2', className)} class:disabled class:hoverable + class:justify-center={centered} aria-hidden={disabled ? 'true' : 'false'} aria-disabled={disabled} tabindex={disabled ? -1 : 0} @@ -136,21 +137,17 @@