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}])]])))