0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-20 05:34:23 -05:00

🐛 Fix token pill on multiselect

This commit is contained in:
Eva Marco 2025-01-08 14:28:33 +01:00
parent 1f5903fa16
commit 97c35a8f9b
2 changed files with 3 additions and 3 deletions

View file

@ -136,8 +136,8 @@
{:key (:name token)
:token token
:theme-token theme-token
:half-applied (and applied (not full-applied))
;; Multiple selected shapes behavior should be reviewed after MVP
:half-applied (or (and applied multiple-selection)
(and applied (not full-applied)))
:full-applied (if multiple-selection
false
applied)

View file

@ -30,7 +30,7 @@
:else
"token-status-non-applied")]
[:button {:class (stl/css-case :token-pill true
:token-pill-applied full-applied
:token-pill-applied (or half-applied full-applied)
:token-pill-invalid errors?
:token-pill-invalid-applied (and full-applied errors?))
:type "button"