diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 184581c5c9e8a..d83f19965c5b0 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -642,7 +642,7 @@ Display a post's featured image. ([Source](https://github.com/WordPress/gutenber - **Name:** core/post-featured-image - **Category:** theme -- **Supports:** align (center, full, left, right, wide), color (~~background~~, ~~text~~), interactivity (clientNavigation), shadow (), spacing (margin, padding), ~~html~~ +- **Supports:** align (center, full, left, right, wide), color (~~background~~, ~~text~~), filter (duotone), interactivity (clientNavigation), shadow (), spacing (margin, padding), ~~html~~ - **Attributes:** aspectRatio, customGradient, customOverlayColor, dimRatio, gradient, height, isLink, linkTarget, overlayColor, rel, scale, sizeSlug, useFirstImageFromPost, width ## Post Navigation Link diff --git a/packages/block-library/src/post-featured-image/block.json b/packages/block-library/src/post-featured-image/block.json index 05c2fb1f28b13..078b7912122ce 100644 --- a/packages/block-library/src/post-featured-image/block.json +++ b/packages/block-library/src/post-featured-image/block.json @@ -61,7 +61,6 @@ "supports": { "align": [ "left", "right", "center", "wide", "full" ], "color": { - "__experimentalDuotone": "img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before", "text": false, "background": false }, @@ -69,7 +68,6 @@ "color": true, "radius": true, "width": true, - "__experimentalSelector": "img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay", "__experimentalSkipSerialization": true, "__experimentalDefaultControls": { "color": true, @@ -77,6 +75,9 @@ "width": true } }, + "filter": { + "duotone": true + }, "shadow": { "__experimentalSkipSerialization": true }, @@ -90,7 +91,11 @@ } }, "selectors": { - "shadow": ".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder" + "border": ".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay", + "shadow": ".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder", + "filter": { + "duotone": ".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before" + } }, "editorStyle": "wp-block-post-featured-image-editor", "style": "wp-block-post-featured-image"