🐛 Fix selected colors with tokens (#8889)

This commit is contained in:
Eva Marco 2026-04-09 14:10:23 +02:00 committed by GitHub
parent 666313c2c3
commit 5b78de3594
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -38,6 +38,7 @@
- Fix opacity incorrectly disabled for visible shapes [Taiga #13906](https://tree.taiga.io/project/penpot/issue/13906)
- Update onboarding image [Taiga #13864](https://tree.taiga.io/project/penpot/issue/13864)
- Fix hot update on color-row on texts [Taiga #13923](https://tree.taiga.io/project/penpot/issue/13923)
- Fix selected color tokens [Taiga #13930](https://tree.taiga.io/project/penpot/issue/13930)
## 2.15.0 (Unreleased)

View File

@ -95,7 +95,13 @@
[raw-tokens input-type]
(delay
(let [raw-tokens (deref raw-tokens)
key-order (get cto/tokens-by-input input-type)]
key-order (case input-type
:color-selection
(concat
(get cto/tokens-by-input :fill)
(get cto/tokens-by-input :stroke-color))
(get cto/tokens-by-input input-type))]
(-> (reduce (fn [acc k]
(if (contains? raw-tokens k)
(assoc acc k (get raw-tokens k))