diff --git a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte index 617b90edcc..59bf7548e1 100644 --- a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte +++ b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte @@ -12,7 +12,6 @@ $: anchor = selectedIndex === -1 ? null : anchors[selectedIndex] const close = () => { - selectedIndex = null popover.hide() } @@ -38,14 +37,19 @@
onCategoryChosen(category, idx)}> + on:click={() => onCategoryChosen(category, idx)} + class:active={idx === selectedIndex}> {#if category.icon}{/if} {category.name} {#if category.isCategory}{/if}
{/each} - + (selectedIndex = null)} + bind:this={popover} + {anchor} + align="left"> onComponentChosen(e.detail)} /> @@ -76,6 +80,7 @@ font-weight: 500; user-select: none; } + .category.active, .category:hover { color: var(--ink); }