- { ( hasBorderWidth || hasBorderStyle ) && (
-
- { hasBorderWidth && (
- {
- setBorderWidth( value || undefined );
- } }
- units={ units }
- />
- ) }
- { hasBorderStyle && (
-
- ) }
-
+
+ { showBorderWidth && (
+
+
+
+ ) }
+ { showBorderStyle && (
+
+
+
) }
- { hasBorderColor && (
-
+ onDeselect={ createResetCallback( setBorderColor ) }
+ isShownByDefault={ true }
+ >
+
+
) }
- { hasBorderRadius && (
-
+ { showBorderRadius && (
+
+
+
) }
-
+
);
}
diff --git a/packages/edit-site/src/components/sidebar/style.scss b/packages/edit-site/src/components/sidebar/style.scss
index 9744b269a073e5..b6189e4d914417 100644
--- a/packages/edit-site/src/components/sidebar/style.scss
+++ b/packages/edit-site/src/components/sidebar/style.scss
@@ -25,20 +25,6 @@
margin-left: auto;
}
-.edit-site-global-styles-sidebar__border-controls-row {
- display: flex;
- justify-content: space-between;
- margin-bottom: $grid-unit-15;
-
- > * {
- width: calc(50% - #{ $grid-unit-10 });
- }
-
- .components-border-style-control__buttons {
- margin-bottom: 0;
- }
-}
-
.edit-site-global-styles-sidebar .components-navigation__menu-title-heading {
font-size: $default-font-size * 1.2;
font-weight: 500;
@@ -53,6 +39,10 @@
border: 0;
}
+.edit-site-global-styles-sidebar .components-tools-panel-item.single-column {
+ grid-column: span 1;
+}
+
.edit-site-global-styles-sidebar__blocks-group {
padding-top: $grid-unit-30;
border-top: $border-width solid $gray-200;