Media & Text Block: Add image fill option#14445
Media & Text Block: Add image fill option#14445frontdevde merged 14 commits intoWordPress:masterfrom
Conversation
There was a problem hiding this comment.
Moved the deprecated part to its own file to declutter index.js.
|
Looks fine! |
|
This seems pretty solid in my testing, and I think it's a welcome addition to the block. I do wonder if we should rephrase the label though.
This can be a little confusing because if there isn't much text in the "Text" column (or if the image is very tall), the image will already be filling the entire column. I wonder if mentioning "cropping" in some way would be more clear:
|
ce109ac to
f24e634
Compare
|
Thanks for the feedback, @kjellr. As per your suggestion, I updated the copy to "Crop image to fill entire column". |
getdave
left a comment
There was a problem hiding this comment.
Great work here. Tested and it seems to work really well.
One a11y point which I think we should consider...
jorgefilipecosta
left a comment
There was a problem hiding this comment.
Thank you for working on @frontdevde, it is looking good 👍
13ddb6d to
153fe18
Compare
6286e4a to
4aea210
Compare
|
Please note that with the merge of #13989 into master, I had to resolve a couple of conflicts and force push the rebased branch. In addition, I also updated the changelog to reflect the changes in this PR. |
|
@mapk Thank you for your input!
Personally, I agree.
@jorgefilipecosta @m-e-h Does this work for you? |
A key point.
I'd agree with this too. I concur with many folk here that One question: I'm not clear why the background-image version wouldn't work in IE11. Also, an Issue should be raised regarding object fit for both |
packages/e2e-tests/fixtures/blocks/core__media-text__image-fill-no-focal-point-selected.html
Outdated
Show resolved
Hide resolved
Probably best to not insert I'm sure IE would just ignore |
|
I've changed the default value for the background position from |
jorgefilipecosta
left a comment
There was a problem hiding this comment.
Things looked good on my tests, thank you for iterating on this 👍

Description
This PR aims to add an image fill option as an enhancement to the Media & Text block.
In the Media & Text block it would be nice to have the option to make the image fill the full height of its column. In addition to providing a new creative option, this would allow for a more consistent look of the block across different viewports.
The corresponding issue is #14226
Screenshots
Todo
Let image fill the entire columnHow has this been tested?
editormodeChecklist: