Skip to content

Commit

Permalink
Avoid paint on resizable-box handles (WordPress#46196)
Browse files Browse the repository at this point in the history
add changelog entry

Co-authored-by: Corentin Gautier <[email protected]>
  • Loading branch information
2 people authored and mpkelly committed Dec 7, 2022
1 parent c61954e commit 6afdb01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- `InputControl`, `NumberControl`, `UnitControl`: Add `help` prop for additional description ([#45931](https://github.com/WordPress/gutenberg/pull/45931)).
- `BorderControl`, `ColorPicker` & `QueryControls`: Replace bottom margin overrides with `__nextHasNoMarginBottom` ([#45985](https://github.com/WordPress/gutenberg/pull/45985)).
- `CustomSelectControl`, `UnitControl`: Add `onFocus` and `onBlur` props ([#46096](https://github.com/WordPress/gutenberg/pull/46096)).
- `ResizableBox`: Prevent unnecessary paint on resize handles ([#46196](https://github.com/WordPress/gutenberg/pull/46196))

### Experimental

Expand Down
1 change: 1 addition & 0 deletions packages/components/src/resizable-box/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ $resize-handler-container-size: $resize-handler-size + ($grid-unit-05 * 2); // M
right: calc(50% - 1px);
transition: transform 0.1s ease-in;
@include reduce-motion("transition");
will-change: transform;
opacity: 0;
}

Expand Down

0 comments on commit 6afdb01

Please sign in to comment.