Tweaks and fixes

This commit is contained in:
2020-02-17 22:36:36 +01:00
parent 6fb6937c1a
commit 0174ba08f2
8 changed files with 20 additions and 70 deletions

View File

@@ -8,13 +8,13 @@
</script>
{#if type === 'button'}
<button class={className} class:button-icon={hasSlot} data-text={text}>
<button class={className} class:button-icon={hasSlot} data-text={text} on:click>
<slot></slot>
<span>{text}</span>
</button>
{:else}
<a {href} class={className} class:button-icon={hasSlot} data-text={text}>
<a {href} class={className} class:button-icon={hasSlot} data-text={text} on:click>
<slot></slot>
<span>{text}</span>
</a>