From 4a1e918acee15bb26a588a8b85c9b7d1e2b9e45c Mon Sep 17 00:00:00 2001 From: Ramon Date: Fri, 28 Jul 2023 13:11:56 +1000 Subject: [PATCH] Disable contrast checker for the cover block using `enableContrastChecker` (#53080) --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/cover/block.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index afc50e46ad2d5..51813220e5824 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -239,7 +239,7 @@ Add an image or video with a text overlay. ([Source](https://github.com/WordPres - **Name:** core/cover - **Category:** media -- **Supports:** align, anchor, color (heading, text, ~~background~~), layout (~~allowJustification~~), spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align, anchor, color (heading, text, ~~background~~, ~~enableContrastChecker~~), layout (~~allowJustification~~), spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~ - **Attributes:** allowedBlocks, alt, backgroundType, contentPosition, customGradient, customOverlayColor, dimRatio, focalPoint, gradient, hasParallax, id, isDark, isRepeated, minHeight, minHeightUnit, overlayColor, tagName, templateLock, url, useFeaturedImage ## Details diff --git a/packages/block-library/src/cover/block.json b/packages/block-library/src/cover/block.json index 4858923748369..e88dd2d65a372 100644 --- a/packages/block-library/src/cover/block.json +++ b/packages/block-library/src/cover/block.json @@ -111,7 +111,8 @@ "heading": true, "text": true, "background": false, - "__experimentalSkipSerialization": [ "gradients" ] + "__experimentalSkipSerialization": [ "gradients" ], + "enableContrastChecker": false }, "typography": { "fontSize": true,