diff --git a/CHANGES.md b/CHANGES.md index b840f6d17..f6babf68a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -21,6 +21,7 @@ - Fix view mode error when an external user tries to export something from a prototype using a shared link [Taiga #10251](https://tree.taiga.io/project/penpot/issue/10251) - Fix merge path nodes with only one node selected [Taiga #9626](https://tree.taiga.io/project/penpot/issue/9626) - Fix problem with import errors [Taiga #10040](https://tree.taiga.io/project/penpot/issue/10040) +- Fix color gradient on texts [Taiga Issue #7488](https://tree.taiga.io/project/penpot/issue/7488) ## 2.6.1 diff --git a/frontend/src/app/main/ui/shapes/fills.cljs b/frontend/src/app/main/ui/shapes/fills.cljs index 4fb4a2996..0cb672e2e 100644 --- a/frontend/src/app/main/ui/shapes/fills.cljs +++ b/frontend/src/app/main/ui/shapes/fills.cljs @@ -61,9 +61,9 @@ embed (embed/use-data-uris uris) transform (gsh/transform-str shape) - pat-props #js {:patternUnits "userSpaceOnUse" - :x x - :y y + pat-props #js {:patternUnits (if (= :text type) "objectBoundingBox" "userSpaceOnUse") + :x (when-not (= :text type) x) + :y (when-not (= :text type) y) :width width :height height}