Set the default value for focalPoint on block.json (https://github.com/woocommerce/woocommerce-blocks/pull/6499)

This commit is contained in:
Alba Rincón 2022-05-31 13:26:36 +02:00 committed by GitHub
parent d17bb32c02
commit 2a99207fac
3 changed files with 9 additions and 3 deletions

View File

@ -51,7 +51,10 @@
},
"focalPoint": {
"type": "object",
"default": false
"default": {
"x": 0.5,
"y": 0.5
}
},
"imageFit": {
"type": "string",

View File

@ -50,7 +50,10 @@
},
"focalPoint": {
"type": "object",
"default": false
"default": {
"x": 0.5,
"y": 0.5
}
},
"imageFit": {
"type": "string",

View File

@ -87,7 +87,7 @@ export const InspectorControls = ( {
backgroundImageSrc,
contentPanel,
dimRatio,
focalPoint = { x: 0.5, y: 0.5 },
focalPoint,
hasParallax,
imageFit,
isRepeated,