From 1bdf62ab41bf2f2ffcb551ebd890b8630480a4a4 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 7 Jun 2023 14:48:17 +0100 Subject: [PATCH] Use indeterminate for select all --- packages/bbui/src/FancyForm/FancyCheckboxGroup.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/bbui/src/FancyForm/FancyCheckboxGroup.svelte b/packages/bbui/src/FancyForm/FancyCheckboxGroup.svelte index be37994616..c92c57388f 100644 --- a/packages/bbui/src/FancyForm/FancyCheckboxGroup.svelte +++ b/packages/bbui/src/FancyForm/FancyCheckboxGroup.svelte @@ -14,6 +14,7 @@ $: updateSelected(selectedBooleans) $: dispatch("change", selected) $: allSelected = selected?.length === options.length + $: noneSelected = !selected?.length function reset() { return Array(options.length).fill(true) @@ -48,6 +49,7 @@ text={selectAllText} compress lighter + indeterminate={!allSelected && !noneSelected} /> {/if}