mirror of https://github.com/penpot/penpot.git
♻️ Fix component schemas (#7481)
This commit is contained in:
parent
1b9deecefc
commit
adafe0648c
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
(def ^:private schema::hint-message
|
||||
[:map
|
||||
[:message :string]
|
||||
[:message [:or fn? :string]]
|
||||
[:id :string]
|
||||
[:type {:optional true} [:enum "hint" "error" "warning"]]
|
||||
[:class {:optional true} :string]])
|
||||
|
|
|
|||
|
|
@ -172,9 +172,7 @@
|
|||
[:id {:optional true} :string]
|
||||
[:offset {:optional true} :int]
|
||||
[:delay {:optional true} :int]
|
||||
;; TODO: Review why html element crash schema
|
||||
;; https://tree.taiga.io/project/penpot/task/12039
|
||||
;; [:content [:or fn? :string [:fn mf/element?]]]
|
||||
[:content [:or fn? :string]]
|
||||
[:placement {:optional true}
|
||||
[:maybe [:enum "top" "bottom" "left" "right" "top-right" "bottom-right" "bottom-left" "top-left"]]]])
|
||||
|
||||
|
|
|
|||
|
|
@ -104,10 +104,10 @@
|
|||
has-errors
|
||||
(tr "color-row.token-color-row.deleted-token")
|
||||
:else
|
||||
(mf/html
|
||||
[:div
|
||||
[:span (dm/str (tr "workspace.tokens.token-name") ": ")]
|
||||
[:span {:class (stl/css :token-name-tooltip)} color-token]]))]
|
||||
#(mf/html
|
||||
[:div
|
||||
[:span (dm/str (tr "workspace.tokens.token-name") ": ")]
|
||||
[:span {:class (stl/css :token-name-tooltip)} color-token]]))]
|
||||
|
||||
[:div {:class (stl/css :color-info)}
|
||||
[:div {:class (stl/css-case :token-color-wrapper true
|
||||
|
|
|
|||
Loading…
Reference in New Issue