Merge branch 'token-studio-develop' into 213-opacity-fixes-03

This commit is contained in:
Florian Schrödl 2024-08-06 08:23:39 +02:00 committed by GitHub
commit f7e7701923
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 50 additions and 8 deletions

View file

@ -24,6 +24,12 @@ If possible add video here from PR as well
Fixes opacity not being applied correctly to shapes.
### 2024-08-05 - Fix stroke witdth applying breaking app
[Link to PR](https://github.com/orgs/tokens-studio/projects/69/views/11?pane=issue&itemId=73072870)
`:stroke-width` token applying wont update for shapes without a stroke.
### 2024-07-25 - UX Improvements for the context menu
[Link to PR](https://github.com/tokens-studio/tokens-studio-for-penpot/pull/224)

View file

@ -117,9 +117,12 @@
(defn update-stroke-width
[value shape-ids]
(dch/update-shapes shape-ids (fn [shape]
(when (seq (:strokes shape))
(assoc-in shape [:strokes 0 :stroke-width] value)))))
(dch/update-shapes shape-ids
(fn [shape]
(when (seq (:strokes shape))
(assoc-in shape [:strokes 0 :stroke-width] value)))
{:reg-objects? true
:attrs [:strokes]}))
(defn update-shape-dimensions [value shape-ids attributes]
(ptk/reify ::update-shape-dimensions