From 619d9f9ed03004a7269af409e92304836afbf609 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 11 Feb 2021 11:52:37 +0100 Subject: [PATCH] Cover: Add missing align support to deprecation (#28796) --- packages/block-library/src/cover/deprecated.js | 9 +++++++++ .../fixtures/blocks/core__cover__deprecated-6.json | 2 +- .../blocks/core__cover__deprecated-6.serialized.html | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/cover/deprecated.js b/packages/block-library/src/cover/deprecated.js index a3bab8926aba5..d3f1588944c1b 100644 --- a/packages/block-library/src/cover/deprecated.js +++ b/packages/block-library/src/cover/deprecated.js @@ -89,6 +89,9 @@ const deprecated = [ type: 'string', }, }, + supports: { + align: true, + }, save( { attributes } ) { const { backgroundType, @@ -219,6 +222,9 @@ const deprecated = [ type: 'string', }, }, + supports: { + align: true, + }, save( { attributes } ) { const { backgroundType, @@ -322,6 +328,9 @@ const deprecated = [ type: 'string', }, }, + supports: { + align: true, + }, save( { attributes } ) { const { backgroundType, diff --git a/packages/e2e-tests/fixtures/blocks/core__cover__deprecated-6.json b/packages/e2e-tests/fixtures/blocks/core__cover__deprecated-6.json index 5a2d306553d61..08423dc54bfb9 100644 --- a/packages/e2e-tests/fixtures/blocks/core__cover__deprecated-6.json +++ b/packages/e2e-tests/fixtures/blocks/core__cover__deprecated-6.json @@ -49,7 +49,7 @@ "isRepeated": false, "minHeight": 48, "minHeightUnit": "vw", - "className": "alignfull" + "align": "full" }, "innerBlocks": [ { diff --git a/packages/e2e-tests/fixtures/blocks/core__cover__deprecated-6.serialized.html b/packages/e2e-tests/fixtures/blocks/core__cover__deprecated-6.serialized.html index f079f578eca39..e2b0d68515462 100644 --- a/packages/e2e-tests/fixtures/blocks/core__cover__deprecated-6.serialized.html +++ b/packages/e2e-tests/fixtures/blocks/core__cover__deprecated-6.serialized.html @@ -6,7 +6,7 @@ - +