0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 23:31:21 -05:00

Restores border radius to color elements

This commit is contained in:
alonso.torres 2020-09-14 12:46:46 +02:00
parent a3419312d7
commit 88763d236a
2 changed files with 6 additions and 2 deletions

View file

@ -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;

View file

@ -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) "?")]