diff --git a/CHANGES.md b/CHANGES.md index e8a0132b5..7bc8fce60 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -48,6 +48,7 @@ - Fix font size input stuck on selection change [Taiga #2184](https://tree.taiga.io/project/penpot/issue/2184) - Fix stroke cut on shapes export [Taiga #2171](https://tree.taiga.io/project/penpot/issue/2171) - Fix no color when boolean with an SVG [Taiga #2193](https://tree.taiga.io/project/penpot/issue/2193) +- Fix unlink color styles at strokes [Taiga #2206](https://tree.taiga.io/project/penpot/issue/2206). ### :arrow_up: Deps updates diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/stroke.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/stroke.cljs index 32e592395..f0bd78126 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/stroke.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/stroke.cljs @@ -102,7 +102,10 @@ (mf/use-callback (mf/deps ids) (fn [] - (st/emit! (dc/change-stroke ids (dissoc current-stroke-color :id :file-id))))) + (let [remove-multiple (fn [[_ value]] (not= value :multiple)) + current-stroke-color (-> (into {} (filter remove-multiple) current-stroke-color) + (assoc :id nil :file-id nil))] + (st/emit! (dc/change-stroke ids current-stroke-color))))) on-stroke-style-change (fn [event]