mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 22:47:27 +02:00
✨ Restores border radius to color elements
This commit is contained in:
parent
a3419312d7
commit
88763d236a
2 changed files with 6 additions and 2 deletions
|
@ -481,6 +481,10 @@
|
||||||
margin: 5px 4px 0 0;
|
margin: 5px 4px 0 0;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
|
|
||||||
|
&.color-name {
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
&.palette-th {
|
&.palette-th {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border: 1px solid $color-gray-30;
|
border: 1px solid $color-gray-30;
|
||||||
|
|
|
@ -117,8 +117,8 @@
|
||||||
|
|
||||||
[:div.row-flex.color-data
|
[:div.row-flex.color-data
|
||||||
[:span.color-th
|
[:span.color-th
|
||||||
{:style {:background-color (-> value value-to-background)
|
{:class (when (:id color) "color-name")
|
||||||
:border-radius (if (:id color) "10px" "inherit")}
|
:style {:background-color (-> value value-to-background)}
|
||||||
:on-click (color-picker-callback @state handle-pick-color disable-opacity)}
|
:on-click (color-picker-callback @state handle-pick-color disable-opacity)}
|
||||||
(when (= value :multiple) "?")]
|
(when (= value :multiple) "?")]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue