From 6ef0f0640c8cb4fcd944f2ccd707874a0e0709f9 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 24 Feb 2024 14:05:46 -0800 Subject: [PATCH] Also apply icon slot logic for link buttons Without this, a button link with an icon prop would not be rendered. --- src/Button/Button.svelte | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Button/Button.svelte b/src/Button/Button.svelte index e182f293..1a45236c 100644 --- a/src/Button/Button.svelte +++ b/src/Button/Button.svelte @@ -167,9 +167,17 @@ {/if} {#if $$slots.icon} - + {:else if icon} - + {/if} {:else}