🐛 Fix typography token context menu (#7038)

This commit is contained in:
Eva Marco 2025-07-31 15:00:14 +02:00 committed by GitHub
parent 76d725559e
commit 63bfbbb3c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -267,6 +267,8 @@
(def shape-attribute-actions-map
(let [stroke-width (partial generic-attribute-actions #{:stroke-width} "Stroke Width")
font-size (partial generic-attribute-actions #{:font-size} "Font Size")
letter-spacing (partial generic-attribute-actions #{:letter-spacing} "Letter Spacing")
font-family (partial generic-attribute-actions #{:font-family} "Font Family")
line-height #(generic-attribute-actions #{:line-height} "Line Height" (assoc % :on-update-shape dwta/update-line-height))
text-case (partial generic-attribute-actions #{:text-case} "Text Case")
border-radius (partial all-or-separate-actions {:attribute-labels {:r1 "Top Left"
@ -292,6 +294,9 @@
(when (seq line-height) line-height))))
:stroke-width stroke-width
:font-size font-size
:font-family font-family
:line-height line-height
:letter-spacing letter-spacing
:text-case text-case
:dimensions (fn [context-data]
(-> (concat