Skip to content

Commit

Permalink
Disable contrast checker for the cover block using `enableContrastChe…
Browse files Browse the repository at this point in the history
…cker`
  • Loading branch information
ramonjd committed Jul 27, 2023
1 parent 99ab7ed commit 2ec77b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/cover/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@
"heading": true,
"text": true,
"background": false,
"__experimentalSkipSerialization": [ "gradients" ]
"__experimentalSkipSerialization": [ "gradients" ],
"enableContrastChecker": false
},
"typography": {
"fontSize": true,
Expand Down

0 comments on commit 2ec77b4

Please sign in to comment.