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}
-