From c12a7ab19eb1be3db3a9bbb838a21b84cc274c65 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 22 Aug 2024 18:56:17 +0100 Subject: [PATCH] Remove deprecated unused props from action buttons --- .../bbui/src/ActionButton/ActionButton.svelte | 119 ++++++------------ .../bbui/src/Notification/Notification.svelte | 6 +- 2 files changed, 42 insertions(+), 83 deletions(-) diff --git a/packages/bbui/src/ActionButton/ActionButton.svelte b/packages/bbui/src/ActionButton/ActionButton.svelte index 8b2d11232c..b8030b8031 100644 --- a/packages/bbui/src/ActionButton/ActionButton.svelte +++ b/packages/bbui/src/ActionButton/ActionButton.svelte @@ -1,16 +1,11 @@ - (showTooltip = true)} on:mouseleave={() => (showTooltip = false)} on:focus={() => (showTooltip = true)} + {disabled} style={accentStyle} > - - + {#if icon} + + {/if} + {#if $$slots} + + {/if} + {#if tooltip && showTooltip} +
+ +
+ {/if} + diff --git a/packages/bbui/src/Notification/Notification.svelte b/packages/bbui/src/Notification/Notification.svelte index 26e60ed366..fbc7197e36 100644 --- a/packages/bbui/src/Notification/Notification.svelte +++ b/packages/bbui/src/Notification/Notification.svelte @@ -27,11 +27,7 @@
{message || ""}
{#if action} - action(() => dispatch("dismiss"))} - > + action(() => dispatch("dismiss"))}>
{actionMessage}
{/if}