diff --git a/packages/bbui/src/ActionButton/ActionButton.svelte b/packages/bbui/src/ActionButton/ActionButton.svelte index 688d3bf7e4..9dd5c68f43 100644 --- a/packages/bbui/src/ActionButton/ActionButton.svelte +++ b/packages/bbui/src/ActionButton/ActionButton.svelte @@ -10,11 +10,7 @@ export let disabled = false export let icon = "" - export let xl = false - export let l = false - export let m = false - export let s = false - $: useDefault = ![xl, l, m, s].includes(true) + export let size = "M" function longPress(element) { if (!longPressable) return @@ -42,11 +38,7 @@ class:spectrum-ActionButton--quiet={quiet} class:spectrum-ActionButton--emphasized={emphasized} class:is-selected={selected} - class:spectrum-ActionButton--sizeS={s} - class:spectrum-ActionButton--sizeM={m || useDefault} - class:spectrum-ActionButton--sizeL={l} - class:spectrum-ActionButton--sizeXL={xl} - class="spectrum-ActionButton" + class="spectrum-ActionButton spectrum-ActionButton--size{size}" {disabled} on:longPress on:click|preventDefault @@ -62,11 +54,7 @@ {/if} {#if icon} {/if} {#if allowEditRows} - Edit + Edit {/if} diff --git a/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte b/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte index 2c37e97956..4e6a0d9c18 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/BlockList.svelte @@ -66,7 +66,7 @@
onChangeTab(idx)}> diff --git a/packages/builder/src/components/design/AppPreview/ComponentSelectionList.svelte b/packages/builder/src/components/design/AppPreview/ComponentSelectionList.svelte index 4163e87104..49261e2f73 100644 --- a/packages/builder/src/components/design/AppPreview/ComponentSelectionList.svelte +++ b/packages/builder/src/components/design/AppPreview/ComponentSelectionList.svelte @@ -46,7 +46,7 @@ {#each enrichedStructure as item, idx} - onItemChosen(item, idx)}> + onItemChosen(item, idx)}> {item.name} {#each item.children || [] as item}