mirror of
https://github.com/penpot/penpot.git
synced 2026-03-12 13:27:02 +00:00
✨ Add tooltipo on colors
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user