From 64f5e0f76ea713cb78a2f4199ccf46d5e7027cb3 Mon Sep 17 00:00:00 2001
From: Shinichi Okada <147320+shinokada@users.noreply.github.com>
Date: Wed, 30 Oct 2024 16:13:49 +0100
Subject: [PATCH] fix: #1463 by adding tag label to Button and RadioButton
---
src/lib/buttons/Button.svelte | 6 +++++-
src/lib/forms/Radio.svelte | 2 +-
src/lib/forms/RadioButton.svelte | 2 +-
src/routes/docs/forms/radio.md | 12 ++++++------
4 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/src/lib/buttons/Button.svelte b/src/lib/buttons/Button.svelte
index 585949bb8..be5d46728 100644
--- a/src/lib/buttons/Button.svelte
+++ b/src/lib/buttons/Button.svelte
@@ -11,7 +11,7 @@
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
color?: ButtonColor;
shadow?: boolean;
- tag?: 'a' | 'button';
+ tag?: 'a' | 'button'| 'label';
checked?: boolean;
}
@@ -142,6 +142,10 @@
+{:else if tag === 'label'}
+
{:else if tag === 'button' }