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

🐛 fix token input color swatch

This commit is contained in:
Xaviju 2024-11-22 12:47:53 +01:00 committed by Xaviju
parent 2464ae1eef
commit 76b2760737

View file

@ -398,8 +398,9 @@ Token names should only contain letters and digits separated by . characters.")}
:external-ref value-input-ref
:on-change on-update-value
:on-blur on-update-value}
[:> input-token-color-bullet*
{:color @color :on-click on-display-colorpicker}]]
(when color?
[:> input-token-color-bullet*
{:color @color :on-click on-display-colorpicker}])]
(when @color-ramp-open?
[:& ramp {:color (some-> (or @token-resolve-result (:value token))