mirror of
https://github.com/penpot/penpot.git
synced 2026-03-19 17:03:44 +00:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
- Fix error activating a set with invalid shadow token applied [Taiga #13528](https://tree.taiga.io/project/penpot/issue/13528)
|
||||
- Fix component "broken" after variant switch [Taiga #12984](https://tree.taiga.io/project/penpot/issue/12984)
|
||||
- Fix incorrect query for file versions [Github #8463](https://github.com/penpot/penpot/pull/8463)
|
||||
- Fix warning when clicking on number token pills [Taiga #13661](https://tree.taiga.io/project/penpot/issue/13661)
|
||||
|
||||
## 2.13.3
|
||||
|
||||
|
||||
@@ -189,7 +189,6 @@
|
||||
(clear-schedule schedule-ref)
|
||||
(add-schedule schedule-ref (d/nilv delay 300)
|
||||
(fn []
|
||||
(prn tooltip-id)
|
||||
(when-let [active @active-tooltip]
|
||||
(when (not= (:id active) tooltip-id)
|
||||
(when-let [tooltip-el (dom/get-element (:id active))]
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
:else "none")))
|
||||
copy-attr
|
||||
(mf/use-fn
|
||||
(mf/deps copied formatted-color-value)
|
||||
(mf/deps copied copiable-value)
|
||||
(fn []
|
||||
(reset! copied* true)
|
||||
(clipboard/to-clipboard copiable-value)
|
||||
|
||||
@@ -141,14 +141,16 @@
|
||||
(fn [event token]
|
||||
(let [token (ctob/get-token tokens-lib selected-token-set-id (:id token))]
|
||||
(dom/stop-propagation event)
|
||||
(if (and not-editing? (seq selected-shapes) (not= (:type token) :number))
|
||||
(st/emit! (dwta/toggle-token {:token token
|
||||
:shape-ids selected-ids}))
|
||||
(when (seq selected-shapes)
|
||||
(st/emit! (ntf/show {:content (tr "workspace.tokens.error-text-edition")
|
||||
:type :toast
|
||||
:level :warning
|
||||
:timeout 3000})))))))]
|
||||
;; Number tokens can't be applied via button click
|
||||
(when (not= (:type token) :number)
|
||||
(if (and not-editing? (seq selected-shapes))
|
||||
(st/emit! (dwta/toggle-token {:token token
|
||||
:shape-ids selected-ids}))
|
||||
(when (seq selected-shapes)
|
||||
(st/emit! (ntf/show {:content (tr "workspace.tokens.error-text-edition")
|
||||
:type :toast
|
||||
:level :warning
|
||||
:timeout 3000}))))))))]
|
||||
|
||||
[:div {:class (stl/css :token-section-wrapper)
|
||||
:data-testid (dm/str "section-" (name type))}
|
||||
|
||||
Reference in New Issue
Block a user