From 3a2677a91aeb32bc60b9477d323e0de690e9e6bc Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 7 Oct 2024 18:01:28 +0200 Subject: [PATCH] :bug: Fix problem with shadows in text for Safari --- CHANGES.md | 1 + frontend/src/app/main/ui/shapes/text/svg_text.cljs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index d7638e172..61c7e08c8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -28,6 +28,7 @@ ### :bug: Bugs fixed - Fix problem with go back button on error page [Taiga #8887](https://tree.taiga.io/project/penpot/issue/8887) +- Fix problem with shadows in text for Safari [Taiga #8770](https://tree.taiga.io/project/penpot/issue/8770) ## 2.2.1 diff --git a/frontend/src/app/main/ui/shapes/text/svg_text.cljs b/frontend/src/app/main/ui/shapes/text/svg_text.cljs index 20c8e8edc..874877ef2 100644 --- a/frontend/src/app/main/ui/shapes/text/svg_text.cljs +++ b/frontend/src/app/main/ui/shapes/text/svg_text.cljs @@ -98,7 +98,11 @@ (obj/set! "fill" (str "url(#fill-" index "-" render-id ")")))} (cond-> browser-props (obj/merge! browser-props))) - shape (assoc shape :fills (:fills data)) + shape (-> shape + (assoc :fills (:fills data)) + ;; The text elements have the shadow and blur already applied in the + ;; group parent. + (dissoc :shadow :blur)) ;; Need to create new render-id per text-block render-id (dm/str render-id "-" index)]