mirror of
https://github.com/penpot/penpot.git
synced 2026-04-30 13:49:06 +00:00
🐛 Fix sets shown without color tokens (#7312)
This commit is contained in:
parent
f4b38af649
commit
07d0062645
@ -673,7 +673,7 @@
|
||||
[{:set \"brand/dark\" :tokens [{:name \"background\"}]}]"
|
||||
[sets]
|
||||
(filter (fn [{:keys [tokens]}]
|
||||
(seq tokens))
|
||||
(some #(= (:type %) :color) tokens))
|
||||
sets))
|
||||
|
||||
(defn- add-tokens-to-sets
|
||||
|
||||
@ -277,7 +277,7 @@
|
||||
(reset! filter-term* value))))
|
||||
filtered-combined (filter-combined-tokens combined-tokens filter-term)
|
||||
sorted-tokens (sort-combined-tokens filtered-combined)]
|
||||
(if combined-tokens
|
||||
(if (seq combined-tokens)
|
||||
[:div {:class (stl/css :color-tokens-section)}
|
||||
[:> input* {:placeholder "Search by token name"
|
||||
:icon i/search
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user