From 346fb06165cf9904132fc33816499c83e37a7d6d Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 13 Dec 2022 15:55:59 +0000 Subject: [PATCH] Fix top nav colours and fix selected tab not updating --- packages/bbui/src/Tabs/Tab.svelte | 3 +- .../src/pages/builder/portal/_layout.svelte | 31 ++++++++++--------- .../builder/portal/settings/_layout.svelte | 10 ------ 3 files changed, 18 insertions(+), 26 deletions(-) diff --git a/packages/bbui/src/Tabs/Tab.svelte b/packages/bbui/src/Tabs/Tab.svelte index c25be7dbc9..637371ded2 100644 --- a/packages/bbui/src/Tabs/Tab.svelte +++ b/packages/bbui/src/Tabs/Tab.svelte @@ -82,7 +82,8 @@ .spectrum-Tabs-item { color: var(--spectrum-global-color-gray-600); } - .spectrum-Tabs-item.is-selected { + .spectrum-Tabs-item.is-selected, + .spectrum-Tabs-item:hover { color: var(--spectrum-global-color-gray-900); } diff --git a/packages/builder/src/pages/builder/portal/_layout.svelte b/packages/builder/src/pages/builder/portal/_layout.svelte index ff735fbc76..336867f5de 100644 --- a/packages/builder/src/pages/builder/portal/_layout.svelte +++ b/packages/builder/src/pages/builder/portal/_layout.svelte @@ -1,5 +1,5 @@ @@ -255,10 +259,7 @@ padding: 7px 0; } .nav :global(.spectrum-Tabs-itemLabel) { - color: #d0d0d0; - } - .nav :global(.spectrum-Tabs-item.is-selected .spectrum-Tabs-itemLabel) { - color: #ffffff; + font-weight: 600; } .branding { display: grid; diff --git a/packages/builder/src/pages/builder/portal/settings/_layout.svelte b/packages/builder/src/pages/builder/portal/settings/_layout.svelte index 142196bd91..c1103bdaa7 100644 --- a/packages/builder/src/pages/builder/portal/settings/_layout.svelte +++ b/packages/builder/src/pages/builder/portal/settings/_layout.svelte @@ -43,16 +43,6 @@ url={$url("./upgrade")} active={$isActive("./upgrade")} /> - -