Add duotone to Post Featured Image block#34113
Conversation
| "align": [ "left", "right", "center", "wide", "full" ], | ||
| "color": { | ||
| "__experimentalDuotone": "img", | ||
| "text": false, |
There was a problem hiding this comment.
Side note, but it's a bit odd we need to toggle these off just to opt-in into duotone. It might make sense to move duotone into a filters support in the future.
There was a problem hiding this comment.
Once we have one more type of filter to justify the new group 🙂
There was a problem hiding this comment.
I agree with @mtias here. It does look odd and it could justify its own group because you need to add more things and is not just about it's current place under color. Have you considered something similar @nosolosw or @jorgefilipecosta ?
|
Because I'm not 100% sure of all the places that featured images are used, if you know of any others where we'd want duotone supported, then please share on here so myself and other reviewers can test them too. I know one such place is in RSS feeds. I've already talked to @mtias about that case, and it sounded like it was okay that duotone won't show up there for now. |
ntsekouras
left a comment
There was a problem hiding this comment.
Looks good! Thanks Alex 👍
Because I'm not 100% sure of all the places that featured images are used, if you know of any others where we'd want duotone supported, then please share on here
I think this is the main block that duotone should be supported..
Description
Fixes #34088
Adds duotone to the featured image.
How has this been tested?
Screenshots
Using Skatepark. Also tested with TT1.
Edit
<!-- wp:post-featured-image {"style":{"color":{"duotone":["#000","#F3B2A9"]}}} /-->Page Template & Save
Types of changes
New feature
Checklist:
*.native.jsfiles for terms that need renaming or removal).