From ea38e5661edcd99b472187214594d87f246ed36a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 17 May 2022 13:32:16 +0100 Subject: [PATCH] Highlighted child components of selected component --- .../src/components/common/NavItem.svelte | 11 ++++++++--- .../navigation/ComponentTree.svelte | 18 +++++++++++++++++- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/components/common/NavItem.svelte b/packages/builder/src/components/common/NavItem.svelte index e7b9b33471..5b8c416260 100644 --- a/packages/builder/src/components/common/NavItem.svelte +++ b/packages/builder/src/components/common/NavItem.svelte @@ -15,6 +15,7 @@ export let iconColor export let scrollable = false export let color + export let highlighted = false const scrollApi = getContext("scroll") const dispatch = createEventDispatcher() @@ -46,6 +47,8 @@ class:border class:selected class:withActions + class:scrollable + class:highlighted style={`padding-left: calc(${indentLevel * 14}px)`} {draggable} on:dragend @@ -55,7 +58,6 @@ on:click={onClick} ondragover="return false" ondragenter="return false" - class:scrollable >