- { ( hasBorderWidth || hasBorderStyle ) && (
-
- { hasBorderWidth && (
- {
- setStyle(
- name,
- 'borderWidth',
- value || undefined
- );
- } }
- units={ units }
- />
- ) }
- { hasBorderStyle && (
-
- setStyle( name, 'borderStyle', value )
- }
- />
- ) }
-
+
+ { showBorderWidth && (
+
+
+
+ ) }
+ { showBorderStyle && (
+
+
+
) }
- { hasBorderColor && (
-
- setStyle( name, 'borderColor', value )
- }
- />
+ onDeselect={ createResetCallback( 'borderColor' ) }
+ isShownByDefault={ true }
+ >
+
+
) }
- { hasBorderRadius && (
-
- setStyle( name, 'borderRadius', value )
- }
- />
+ { showBorderRadius && (
+
+
+
) }
-
+
);
}
diff --git a/packages/edit-site/src/components/sidebar/style.scss b/packages/edit-site/src/components/sidebar/style.scss
index 712db7bed14a0..bc75cfb88ec40 100644
--- a/packages/edit-site/src/components/sidebar/style.scss
+++ b/packages/edit-site/src/components/sidebar/style.scss
@@ -24,17 +24,3 @@
.edit-site-global-styles-sidebar__reset-button.components-button {
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;
- }
-}