diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 94f69636b3e05..3c4dd1e29476c 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -9,6 +9,7 @@ ### Bug Fix +- `FocalPointPicker`: Allow `PointerCircle` to render in a default centered position when x and y coordinates are undefined ([#58592](https://github.com/WordPress/gutenberg/pull/58592)). - `DateTime`: Add a timezone offset value for display purposes. ([#56682](https://github.com/WordPress/gutenberg/pull/56682)). - `Placeholder`: Fix Placeholder component padding when body text font size is changed ([#58323](https://github.com/WordPress/gutenberg/pull/58323)). - `Placeholder`: Fix Global Styles typography settings bleeding into placeholder component ([#58303](https://github.com/WordPress/gutenberg/pull/58303)). diff --git a/packages/components/src/focal-point-picker/index.tsx b/packages/components/src/focal-point-picker/index.tsx index 1b4c4d9dff966..33fd505f67fe1 100644 --- a/packages/components/src/focal-point-picker/index.tsx +++ b/packages/components/src/focal-point-picker/index.tsx @@ -217,8 +217,8 @@ export function FocalPointPicker( { }; const focalPointPosition = { - left: x * bounds.width, - top: y * bounds.height, + left: x !== undefined ? x * bounds.width : 0.5 * bounds.width, + top: y !== undefined ? y * bounds.height : 0.5 * bounds.height, }; const classes = classnames(