From 584f8be751ab0f4a77a4418bb5abec02aa989847 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Thu, 21 Nov 2024 15:39:19 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Show=20fallback=20color=20for=20?= =?UTF-8?q?selected=20inactive=20set?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/app/main/ui/workspace/tokens/sidebar.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs index 71f06b614b..bdf524dfb9 100644 --- a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs @@ -71,7 +71,10 @@ :on-context-menu on-context-menu :disabled errors?} (when-let [color (if (seq (ctob/find-token-value-references (:value token))) - (wtt/resolved-value-hex theme-token) + (or + (wtt/resolved-value-hex theme-token) + ;; Fallback when the current set is inactive and has a reference that resolves in this inactive set + (wtt/resolved-value-hex token)) (wtt/resolved-value-hex token))] [:& color-bullet {:color color :mini? true}])