0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-30 16:41:20 -05:00

Add tooltipo on colors

This commit is contained in:
Aitor 2024-01-17 10:22:08 +01:00
parent 70ff72a03a
commit b2bbe12a11

View file

@ -26,7 +26,9 @@
(^function on-click color event))))]
(if (uc/multiple? color)
[:div {:on-click on-click :class (stl/css :color-bullet :multiple)}]
[:div {:class (stl/css :color-bullet :multiple)
:on-click on-click
:title (:color color)}]
;; No multiple selection
(let [color (if (string? color) {:color color :opacity 1} color)
id (:id color)
@ -44,7 +46,8 @@
:grid-area area
:read-only read-only?)
:data-readonly (str read-only?)
:on-click on-click}
:on-click on-click
:title (:color color)}
(cond
(some? gradient)