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))))] (^function on-click color event))))]
(if (uc/multiple? color) (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 ;; No multiple selection
(let [color (if (string? color) {:color color :opacity 1} color) (let [color (if (string? color) {:color color :opacity 1} color)
id (:id color) id (:id color)
@ -44,7 +46,8 @@
:grid-area area :grid-area area
:read-only read-only?) :read-only read-only?)
:data-readonly (str read-only?) :data-readonly (str read-only?)
:on-click on-click} :on-click on-click
:title (:color color)}
(cond (cond
(some? gradient) (some? gradient)