From 5f904eef375e0b11d17967ac4538c74cdd7158c6 Mon Sep 17 00:00:00 2001 From: Ryan Atkinson Date: Sun, 4 Aug 2024 11:44:24 -0600 Subject: [PATCH] fix `Copy_To_Clipboard` for non-icons --- .changeset/modern-waves-yawn.md | 5 +++++ src/lib/Copy_To_Clipboard.svelte | 11 ++--------- 2 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 .changeset/modern-waves-yawn.md diff --git a/.changeset/modern-waves-yawn.md b/.changeset/modern-waves-yawn.md new file mode 100644 index 000000000..26ffaac9c --- /dev/null +++ b/.changeset/modern-waves-yawn.md @@ -0,0 +1,5 @@ +--- +'@ryanatkn/fuz': patch +--- + +fix `Copy_To_Clipboard` for non-icons diff --git a/src/lib/Copy_To_Clipboard.svelte b/src/lib/Copy_To_Clipboard.svelte index 4af1de5d3..d1c99113a 100644 --- a/src/lib/Copy_To_Clipboard.svelte +++ b/src/lib/Copy_To_Clipboard.svelte @@ -13,14 +13,7 @@ // TODO add library entry - const { - text, - classes = '', - button_classes = 'icon_button', - button_attrs, - attrs, - children, - }: Props = $props(); + const {text, classes = '', button_classes, button_attrs, attrs, children}: Props = $props(); let copied = $state(false); let failed = $state(false); @@ -42,7 +35,7 @@