0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 14:39:45 -05:00

🐛 Fix change colors from selected colors

This commit is contained in:
Alejandro Alonso 2023-03-07 09:54:01 +01:00 committed by Alonso Torres
parent 9f66e8e5d1
commit 91c12ca34f
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@
- Fix problem with shadows and blur on multiple selection
- Fix problem with redo shortcut
- Fix search field has implemented shared styles for "close icon" and "search icon" [Taiga #4927](https://tree.taiga.io/project/penpot/issue/4927)
- Fix Change text color from selected colors [Taiga #4933](https://tree.taiga.io/project/penpot/issue/4933)
## 1.17.2
### :bug: Bugs fixed

View file

@ -337,7 +337,7 @@
(defn change-text-color
[old-color new-color index node]
(let [fills (:fills node)
(let [fills (map #(dissoc % :fill-color-ref-id :fill-color-ref-file) (:fills node))
parsed-color (d/without-nils (color-att->text old-color))
parsed-new-color (d/without-nils (color-att->text new-color))
has-color? (d/index-of fills parsed-color)]