mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 21:26:11 +02: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))))]
|
(^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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue