From 6005c0a4d8cd987d737dbd41c289422ca05dc709 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 11 Aug 2021 15:21:35 +0100 Subject: [PATCH] Ensure checkbox always has a size class --- packages/bbui/src/Form/Core/Checkbox.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/bbui/src/Form/Core/Checkbox.svelte b/packages/bbui/src/Form/Core/Checkbox.svelte index 74745aa9a6..ca3cef383f 100644 --- a/packages/bbui/src/Form/Core/Checkbox.svelte +++ b/packages/bbui/src/Form/Core/Checkbox.svelte @@ -8,16 +8,18 @@ export let id = null export let text = null export let disabled = false - export let size = null + export let size const dispatch = createEventDispatcher() const onChange = event => { dispatch("change", event.target.checked) } + + $: sizeClass = `spectrum-Checkbox--size${size || "M"}`