From 02543b1a4f98931a4ad9cafaa6712bf60a46c00b Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 14 Feb 2023 17:54:23 +0100 Subject: [PATCH] :bug: Fix problem with opacity in frames --- CHANGES.md | 1 + frontend/src/app/main/ui/shapes/frame.cljs | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 9753a962c..75f1467ac 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,6 +3,7 @@ ### :bug: Bugs fixed - Fix invite members button text [Taiga #4794](https://tree.taiga.io/project/penpot/issue/4794) +- Fix problem with opacity in frames [Taiga #4795](https://tree.taiga.io/project/penpot/issue/4795) ## 1.17.2 diff --git a/frontend/src/app/main/ui/shapes/frame.cljs b/frontend/src/app/main/ui/shapes/frame.cljs index 4d124f29f..1708c3640 100644 --- a/frontend/src/app/main/ui/shapes/frame.cljs +++ b/frontend/src/app/main/ui/shapes/frame.cljs @@ -124,11 +124,10 @@ (mf/fnc frame-shape {::mf/wrap-props false} [props] - - (let [childs (unchecked-get props "childs")] + (let [shape (unchecked-get props "shape") + childs (unchecked-get props "childs")] [:> frame-container props - [:g.frame-children + [:g.frame-children {:opacity (:opacity shape)} (for [item childs] - [:& shape-wrapper {:key (dm/str (:id item)) :shape item}] - )]]))) + [:& shape-wrapper {:key (dm/str (:id item)) :shape item}])]])))