mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Fix sizing/dimensions token mixup
This commit is contained in:
parent
f8972efea0
commit
591e333400
2 changed files with 15 additions and 4 deletions
|
@ -73,7 +73,7 @@
|
|||
|
||||
(def stroke-width-keys (schema-keys ::stroke-width))
|
||||
|
||||
(sm/def! ::dimensions
|
||||
(sm/def! ::sizing
|
||||
[:map
|
||||
[:width {:optional true} ::sm/uuid]
|
||||
[:height {:optional true} ::sm/uuid]
|
||||
|
@ -82,7 +82,7 @@
|
|||
[:min-width {:optional true} ::sm/uuid]
|
||||
[:max-width {:optional true} ::sm/uuid]])
|
||||
|
||||
(def dimensions-keys (schema-keys ::dimensions))
|
||||
(def sizing-keys (schema-keys ::sizing))
|
||||
|
||||
(sm/def! ::opacity
|
||||
[:map
|
||||
|
@ -104,11 +104,20 @@
|
|||
|
||||
(def spacing-keys (schema-keys ::spacing))
|
||||
|
||||
(sm/def! ::dimensions
|
||||
(merge-schemas ::sizing
|
||||
::spacing
|
||||
::stroke-width
|
||||
::border-radius))
|
||||
|
||||
(def dimensions-keys (schema-keys ::dimensions))
|
||||
|
||||
(sm/def! ::tokens
|
||||
[:map {:title "Applied Tokens"}])
|
||||
|
||||
(sm/def! ::applied-tokens
|
||||
(merge-schemas ::tokens
|
||||
::border-radius
|
||||
::dimensions
|
||||
::spacing))
|
||||
::sizing
|
||||
::spacing
|
||||
::dimensions))
|
||||
|
|
|
@ -113,6 +113,8 @@
|
|||
:type :box-shadow}]}}]
|
||||
[:sizing
|
||||
{:title "Sizing"
|
||||
:attributes ctt/sizing-keys
|
||||
:on-update-shape update-shape-dimensions
|
||||
:modal {:key :tokens/sizing
|
||||
:fields [{:label "Sizing"
|
||||
:key :sizing}]}}]
|
||||
|
|
Loading…
Add table
Reference in a new issue