From a1f0e4d4bde59dda692a9c8f2ddadbb4626038ce Mon Sep 17 00:00:00 2001 From: Shibo Lyu Date: Mon, 14 Apr 2025 03:41:27 +0800 Subject: [PATCH] fix: Button component typing and add background style Add proper TypeScript discriminated union type to ensure correct HTML attributes based on whether the component renders as a button or anchor. Also add bg-sb-primary class to the component's base styles. --- src/lib/components/Button.svelte | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte index c34d863..b0eda4c 100644 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/Button.svelte @@ -1,28 +1,29 @@