From b2bbe12a11870f99e86f6593563f8129335a5b5e Mon Sep 17 00:00:00 2001 From: Aitor Date: Wed, 17 Jan 2024 10:22:08 +0100 Subject: [PATCH] :sparkles: Add tooltipo on colors --- frontend/src/app/main/ui/components/color_bullet_new.cljs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/components/color_bullet_new.cljs b/frontend/src/app/main/ui/components/color_bullet_new.cljs index f15f3549c..a742d54ec 100644 --- a/frontend/src/app/main/ui/components/color_bullet_new.cljs +++ b/frontend/src/app/main/ui/components/color_bullet_new.cljs @@ -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)