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:
parent
70ff72a03a
commit
b2bbe12a11
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue