Skip to content

Commit

Permalink
Use var border color and radius on color panel items (#42283)
Browse files Browse the repository at this point in the history
* Use $gray-300 instead of rgba(0, 0, 0, 0.1)

* Use $radius-block-ui
  • Loading branch information
richtabor authored Mar 16, 2023
1 parent 43338de commit 55e16d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/block-editor/src/components/colors-gradients/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,20 @@ $swatch-gap: 12px;
max-width: 100%;

// Border styles.
border-left: 1px solid rgba(0, 0, 0, 0.1);
border-right: 1px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
border-left: 1px solid $gray-300;
border-right: 1px solid $gray-300;
border-bottom: 1px solid $gray-300;

&.first {
margin-top: $grid-unit-30;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-top-left-radius: $radius-block-ui;
border-top-right-radius: $radius-block-ui;
border-top: 1px solid $gray-300;
}

&.last {
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: $radius-block-ui;
border-bottom-right-radius: $radius-block-ui;
}

> div,
Expand Down

0 comments on commit 55e16d3

Please sign in to comment.