Skip to content

Commit

Permalink
Apply fixes to the BlockInspector component
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Dec 20, 2022
1 parent e63d6d3 commit 385fc5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
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
2 changes: 1 addition & 1 deletion packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- `InputControl`: Fix internal `Flex` wrapper usage that could add an unintended `height: 100%` ([#46213](https://github.com/WordPress/gutenberg/pull/46213)).
- `Navigator`: Allow calling `goTo` and `goBack` twice in one render cycle ([#46391](https://github.com/WordPress/gutenberg/pull/46391)).
- `Modal`: Fix unexpected modal closing in IME Composition ([#46453](https://github.com/WordPress/gutenberg/pull/46453)).
- `FocalPointPicker`: Reset `margin-bottom` of `UnitControl` to align vertical position ([#46631](https://github.com/WordPress/gutenberg/pull/46631)).
- `FocalPointPicker`: Fix layout misalignment when placed in the `BlockInspector` ([#46631](https://github.com/WordPress/gutenberg/pull/46631)).

### Enhancements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ export const MediaPlaceholder = styled.div`

export const StyledUnitControl = styled( UnitControl )`
width: 100px;
&&& {
margin-bottom: 0;
}
`;

const deprecatedBottomMargin = ( {
Expand Down

0 comments on commit 385fc5d

Please sign in to comment.