From 615d82581726ea6dcd326255ea91a45d58b4750a Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 7 Jun 2023 14:48:03 +0100 Subject: [PATCH 1/3] Allow indeterminate booleans --- packages/bbui/src/FancyForm/FancyCheckbox.svelte | 3 ++- packages/bbui/src/Form/Core/Checkbox.svelte | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/bbui/src/FancyForm/FancyCheckbox.svelte b/packages/bbui/src/FancyForm/FancyCheckbox.svelte index 363a827b1e..56290606f6 100644 --- a/packages/bbui/src/FancyForm/FancyCheckbox.svelte +++ b/packages/bbui/src/FancyForm/FancyCheckbox.svelte @@ -10,6 +10,7 @@ export let validate = null export let compress = false export let lighter = false + export let indeterminate = false const dispatch = createEventDispatcher() @@ -34,7 +35,7 @@ on:click={onChange} > - +
{#if text} diff --git a/packages/bbui/src/Form/Core/Checkbox.svelte b/packages/bbui/src/Form/Core/Checkbox.svelte index 8384c8ca09..36ab9d288e 100644 --- a/packages/bbui/src/Form/Core/Checkbox.svelte +++ b/packages/bbui/src/Form/Core/Checkbox.svelte @@ -9,6 +9,7 @@ export let text = null export let disabled = false export let size + export let indeterminate = false const dispatch = createEventDispatcher() const onChange = event => { @@ -19,7 +20,9 @@
{/if} From cc52362fe371a2971ee4408226fce793d2a51d58 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 7 Jun 2023 15:00:23 +0100 Subject: [PATCH 3/3] Use svelte class attribute --- packages/bbui/src/Form/Core/Checkbox.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/bbui/src/Form/Core/Checkbox.svelte b/packages/bbui/src/Form/Core/Checkbox.svelte index 36ab9d288e..3efc737bfb 100644 --- a/packages/bbui/src/Form/Core/Checkbox.svelte +++ b/packages/bbui/src/Form/Core/Checkbox.svelte @@ -20,11 +20,10 @@