From 2ec77b45c669d2d3a459a5c1327852d689850e16 Mon Sep 17 00:00:00 2001 From: ramon Date: Fri, 28 Jul 2023 09:25:41 +1000 Subject: [PATCH] Disable contrast checker for the cover block using `enableContrastChecker` --- 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,