mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
Fix highlighting for dimensions token
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
(ns app.main.ui.workspace.tokens.token-types
|
(ns app.main.ui.workspace.tokens.token-types
|
||||||
(:require
|
(:require
|
||||||
|
[app.common.data :as d :refer [ordered-map]]
|
||||||
[app.common.types.token :as ctt]
|
[app.common.types.token :as ctt]
|
||||||
[app.main.ui.workspace.tokens.changes :as wtch]
|
[app.main.ui.workspace.tokens.changes :as wtch]
|
||||||
[app.common.data :as d :refer [ordered-map]]))
|
[clojure.set :as set]))
|
||||||
|
|
||||||
(def token-types
|
(def token-types
|
||||||
(ordered-map
|
(ordered-map
|
||||||
@@ -32,6 +33,11 @@
|
|||||||
[:dimensions
|
[:dimensions
|
||||||
{:title "Dimensions"
|
{:title "Dimensions"
|
||||||
:attributes #{:width :height}
|
:attributes #{:width :height}
|
||||||
|
:all-attributes (set/union
|
||||||
|
ctt/spacing-keys
|
||||||
|
ctt/sizing-keys
|
||||||
|
ctt/border-radius-keys
|
||||||
|
ctt/stroke-width-keys)
|
||||||
:on-update-shape wtch/update-shape-dimensions
|
:on-update-shape wtch/update-shape-dimensions
|
||||||
:modal {:key :tokens/dimensions
|
:modal {:key :tokens/dimensions
|
||||||
:fields [{:label "Dimensions"
|
:fields [{:label "Dimensions"
|
||||||
|
|||||||
Reference in New Issue
Block a user