From 6fa2a0f351881da7d144318894b7ada1bf988337 Mon Sep 17 00:00:00 2001 From: Vicente Canales Date: Thu, 18 Jan 2024 16:14:30 -0300 Subject: [PATCH] wip: Enable box shadow support Depends on: https://github.com/WordPress/gutenberg/pull/57654 This PR adds box shadow support to the following blocks: - [ ] Columns - [ ] Cover - [ ] Group - [ ] Image Issue: https://github.com/WordPress/gutenberg/issues/57103 --- packages/block-library/src/columns/block.json | 3 ++- packages/block-library/src/cover/block.json | 3 ++- packages/block-library/src/group/block.json | 3 ++- packages/block-library/src/image/block.json | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/columns/block.json b/packages/block-library/src/columns/block.json index dff9c45ae2ddeb..a17ec176fd768d 100644 --- a/packages/block-library/src/columns/block.json +++ b/packages/block-library/src/columns/block.json @@ -78,7 +78,8 @@ "__experimentalDefaultControls": { "fontSize": true } - } + }, + "shadow": true }, "editorStyle": "wp-block-columns-editor", "style": "wp-block-columns" diff --git a/packages/block-library/src/cover/block.json b/packages/block-library/src/cover/block.json index d2c55dd26b4d74..a8c02b1e804bdb 100644 --- a/packages/block-library/src/cover/block.json +++ b/packages/block-library/src/cover/block.json @@ -129,7 +129,8 @@ }, "layout": { "allowJustification": false - } + }, + "shadow": true }, "editorStyle": "wp-block-cover-editor", "style": "wp-block-cover" diff --git a/packages/block-library/src/group/block.json b/packages/block-library/src/group/block.json index df59c25a7751fb..fd2659e5db4de7 100644 --- a/packages/block-library/src/group/block.json +++ b/packages/block-library/src/group/block.json @@ -87,7 +87,8 @@ }, "layout": { "allowSizingOnChildren": true - } + }, + "shadow": true }, "editorStyle": "wp-block-group-editor", "style": "wp-block-group" diff --git a/packages/block-library/src/image/block.json b/packages/block-library/src/image/block.json index c5191e3dd86543..d4502e27fa436e 100644 --- a/packages/block-library/src/image/block.json +++ b/packages/block-library/src/image/block.json @@ -112,7 +112,8 @@ "radius": true, "width": true } - } + }, + "shadow": true }, "selectors": { "border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",