Skip to content

Commit

Permalink
Border panel: Update panel layout (#35938)
Browse files Browse the repository at this point in the history
* Restore single-column styling for appropriate controls

* Remove clear button from Color picker in ToolsPanel
  • Loading branch information
stacimc authored and aaronrobertshaw committed Nov 29, 2021
1 parent 8c195d3 commit 02335dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-editor/src/hooks/border.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.border-block-support-panel {
.single-column {
grid-column: span 1;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ export default function BorderPanel( { name } ) {
disableCustomColors={ disableCustomColors }
disableCustomGradients={ disableCustomGradients }
onColorChange={ handleOnChange( setBorderColor ) }
clearable={ false }
/>
</ToolsPanelItem>
) }
Expand Down
4 changes: 4 additions & 0 deletions packages/edit-site/src/components/sidebar/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,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;
Expand Down

0 comments on commit 02335dc

Please sign in to comment.