From 2284037c2e921646fb4c46593951c6ba40fbf199 Mon Sep 17 00:00:00 2001 From: Ramon Date: Thu, 18 Aug 2022 09:58:20 +1000 Subject: [PATCH] Enabling background color and gradients for the gallery (#43294) --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/gallery/block.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 9993087ba7d993..faef91da28ba36 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -266,7 +266,7 @@ Display multiple images in a rich gallery. ([Source](https://github.com/WordPres - **Name:** core/gallery - **Category:** media -- **Supports:** align, anchor, spacing (blockGap), units (em, px, rem, vh, vw), ~~html~~ +- **Supports:** align, anchor, color (background, gradients, ~~text~~), spacing (blockGap), units (em, px, rem, vh, vw), ~~html~~ - **Attributes:** allowResize, caption, columns, fixedHeight, ids, imageCrop, images, linkTarget, linkTo, shortCodeTransforms, sizeSlug ## Group diff --git a/packages/block-library/src/gallery/block.json b/packages/block-library/src/gallery/block.json index 8ee59adcda9941..e0eec816b89f22 100644 --- a/packages/block-library/src/gallery/block.json +++ b/packages/block-library/src/gallery/block.json @@ -116,6 +116,11 @@ "blockGap": true } }, + "color": { + "text": false, + "background": true, + "gradients": true + }, "__experimentalLayout": { "allowSwitching": false, "allowInheriting": false,