Skip to content

Commit c64b751

Browse files
corentin-gautierCorentin Gautier
andauthored
Avoid paint on resizable-box handles (#46196)
add changelog entry Co-authored-by: Corentin Gautier <[email protected]>
1 parent afc8b42 commit c64b751

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/components/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- `InputControl`, `NumberControl`, `UnitControl`: Add `help` prop for additional description ([#45931](https://github.com/WordPress/gutenberg/pull/45931)).
2121
- `BorderControl`, `ColorPicker` & `QueryControls`: Replace bottom margin overrides with `__nextHasNoMarginBottom` ([#45985](https://github.com/WordPress/gutenberg/pull/45985)).
2222
- `CustomSelectControl`, `UnitControl`: Add `onFocus` and `onBlur` props ([#46096](https://github.com/WordPress/gutenberg/pull/46096)).
23+
- `ResizableBox`: Prevent unnecessary paint on resize handles ([#46196](https://github.com/WordPress/gutenberg/pull/46196))
2324

2425
### Experimental
2526

packages/components/src/resizable-box/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ $resize-handler-container-size: $resize-handler-size + ($grid-unit-05 * 2); // M
5454
right: calc(50% - 1px);
5555
transition: transform 0.1s ease-in;
5656
@include reduce-motion("transition");
57+
will-change: transform;
5758
opacity: 0;
5859
}
5960

0 commit comments

Comments
 (0)