From 984fb6bb54bbad9d1794253920dbad564b157e9c Mon Sep 17 00:00:00 2001 From: Ian Donahue Date: Tue, 28 Mar 2023 17:00:46 +0200 Subject: [PATCH] Refactored the button component woerjowier --- src/lib/components/Button.svelte | 54 +++++++++++++-------------- src/lib/components/ButtonGroup.svelte | 14 +++++-- src/stories/Button.stories.ts | 44 +++++++++++----------- 3 files changed, 59 insertions(+), 53 deletions(-) diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte index 36a7602d2..9b9d0ab3b 100644 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/Button.svelte @@ -1,6 +1,6 @@ {#if !middleLabel} -
-
{:else} -
+
@@ -33,4 +33,10 @@ .joined-base { @apply flex items-center justify-center border-[#71717a] text-base text-white; } + .btn-group { + @apply flex gap-3; + } + .btn-group--segmented { + @apply flex gap-0; + } diff --git a/src/stories/Button.stories.ts b/src/stories/Button.stories.ts index afbb41e9b..6b583ac32 100644 --- a/src/stories/Button.stories.ts +++ b/src/stories/Button.stories.ts @@ -9,7 +9,7 @@ const meta: Meta