Skip to content

Commit

Permalink
FocalPointPicker: Fix layout misalignment when placed in the `BlockIn…
Browse files Browse the repository at this point in the history
…spector` (#46631)

* FocalPointPicker: Reset margin-bottom of UnitControl to align vertical position

* Update changelog

* Apply fixes to the `BlockInspector` component

* Move changelog into block-editor package
  • Loading branch information
t-hamano committed Dec 21, 2022
1 parent 6c1cdbd commit 05bef82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/CHANGELOG.md
Expand Up @@ -14,6 +14,7 @@
### Bug Fix

- `SpacingSizesControl`: Change ARIA role from `region` to `group` to avoid unwanted ARIA landmark regions ([#46530](https://github.com/WordPress/gutenberg/pull/46530)).
- `FocalPointPicker`: Fix layout misalignment when placed in the `BlockInspector` ([#46631](https://github.com/WordPress/gutenberg/pull/46631)).

## 10.5.0 (2022-11-16)

Expand Down
Expand Up @@ -17,6 +17,13 @@
margin-bottom: $grid-unit-10;
}
}

// 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;
}

.components-panel__body {
border: none;
border-top: $border-width solid $gray-200;
Expand Down

0 comments on commit 05bef82

Please sign in to comment.