mirror of
https://github.com/penpot/penpot.git
synced 2026-03-12 13:27:02 +00:00
✨ Restores border radius to color elements
This commit is contained in:
@@ -481,6 +481,10 @@
|
||||
margin: 5px 4px 0 0;
|
||||
width: 20px;
|
||||
|
||||
&.color-name {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
&.palette-th {
|
||||
align-items: center;
|
||||
border: 1px solid $color-gray-30;
|
||||
|
||||
@@ -117,8 +117,8 @@
|
||||
|
||||
[:div.row-flex.color-data
|
||||
[:span.color-th
|
||||
{:style {:background-color (-> value value-to-background)
|
||||
:border-radius (if (:id color) "10px" "inherit")}
|
||||
{:class (when (:id color) "color-name")
|
||||
:style {:background-color (-> value value-to-background)}
|
||||
:on-click (color-picker-callback @state handle-pick-color disable-opacity)}
|
||||
(when (= value :multiple) "?")]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user