🐛 Fix sets shown without color tokens (#7312)

This commit is contained in:
Eva Marco 2025-09-15 10:38:06 +02:00 committed by GitHub
parent f4b38af649
commit 07d0062645
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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