🐛 Fix X & Y position do not sincronize with tokens (#7004)

This commit is contained in:
Eva Marco 2025-07-29 14:32:06 +02:00 committed by GitHub
parent 17447d7610
commit 36d3d94ec9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View file

@ -52,6 +52,7 @@
- Fix change from gradient to solid color [Taiga #11648](https://tree.taiga.io/project/penpot/issue/11648)
- Fix the context menu always closes after any action [Taiga #11624](https://tree.taiga.io/project/penpot/issue/11624)
- Fix font selector highlight inconsistency when using keyboard navigation [Taiga #11668](https://tree.taiga.io/project/penpot/issue/11668)
- Fix X & Y position do not sincronize with tokens [Taiga #11617](https://tree.taiga.io/project/penpot/issue/11617)
## 2.8.1 (Unreleased)

View file

@ -128,6 +128,15 @@
(def dimensions-keys (schema-keys schema:dimensions))
(def ^:private schema:axis
[:map
[:x {:optional true} token-name-ref]
[:y {:optional true} token-name-ref]])
(def axis-keys (schema-keys schema:axis))
(def ^:private schema:rotation
[:map
[:rotation {:optional true} token-name-ref]])
@ -165,6 +174,7 @@
opacity-keys
spacing-keys
dimensions-keys
axis-keys
rotation-keys
typography-keys
number-keys))
@ -216,7 +226,8 @@
(opacity-keys shape-attr) #{shape-attr}
(spacing-keys shape-attr) #{shape-attr}
(rotation-keys shape-attr) #{shape-attr}
(number-keys shape-attr) #{shape-attr})))
(number-keys shape-attr) #{shape-attr}
(axis-keys shape-attr) #{shape-attr})))
(defn token-attr->shape-attr
[token-attr]