mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 01:27:17 +02:00
🐛 Show fallback color for selected inactive set
This commit is contained in:
parent
e7b07715a4
commit
584f8be751
1 changed files with 4 additions and 1 deletions
|
@ -71,7 +71,10 @@
|
||||||
:on-context-menu on-context-menu
|
:on-context-menu on-context-menu
|
||||||
:disabled errors?}
|
:disabled errors?}
|
||||||
(when-let [color (if (seq (ctob/find-token-value-references (:value token)))
|
(when-let [color (if (seq (ctob/find-token-value-references (:value token)))
|
||||||
|
(or
|
||||||
(wtt/resolved-value-hex theme-token)
|
(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))]
|
(wtt/resolved-value-hex token))]
|
||||||
[:& color-bullet {:color color
|
[:& color-bullet {:color color
|
||||||
:mini? true}])
|
:mini? true}])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue