Skip to content

Commit

Permalink
Opt out from block inspector margins
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Mar 2, 2023
1 parent 73881d6 commit 6cd387e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions packages/block-editor/src/components/block-inspector/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@
}
}

// Reset unexpected margin-bottom from being applied to the `BaseControl`
// component of the `FocalPointPicker` component.
.components-focal-point-picker-control .components-base-control {
margin-bottom: 0;
}

// Adjust margin-bottom from being applied to the `BaseControl`
.wp-block-latest-posts__sorting-filtering .components-base-control {
margin-bottom: $grid-unit-10;
// Reset unwanted margin-bottom from being applied to BaseControls within certain components.
.components-focal-point-picker-control,
.components-query-controls {
.components-base-control {
margin-bottom: 0;
}
}

.components-panel__body {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/query-controls/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function QueryControls( {
...props
}: QueryControlsProps ) {
return (
<VStack spacing="4">
<VStack spacing="4" className="components-query-controls">
{ [
onOrderChange && onOrderByChange && (
<SelectControl
Expand Down

0 comments on commit 6cd387e

Please sign in to comment.