0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-07 23:08:24 -05:00

Fix highlighting for dimensions token

This commit is contained in:
Florian Schroedl 2024-07-29 16:00:46 +02:00
parent 596d662ca8
commit 3f14af9e03

View file

@ -1,8 +1,9 @@
(ns app.main.ui.workspace.tokens.token-types
(:require
[app.common.data :as d :refer [ordered-map]]
[app.common.types.token :as ctt]
[app.main.ui.workspace.tokens.changes :as wtch]
[app.common.data :as d :refer [ordered-map]]))
[clojure.set :as set]))
(def token-types
(ordered-map
@ -32,6 +33,11 @@
[:dimensions
{:title "Dimensions"
: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
:modal {:key :tokens/dimensions
:fields [{:label "Dimensions"