-
Notifications
You must be signed in to change notification settings - Fork 219
Remove opinionated styles from Alternating Image and Text pattern #10292
Remove opinionated styles from Alternating Image and Text pattern #10292
Conversation
The release ZIP for this PR is accessible via:
Script Dependencies ReportThere is no changed script dependency between this branch and trunk. This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: 0 B Total Size: 1.36 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used images with different sizes and this is the result:
I think you used square images for the "after" image, so just confirming that the images should maintain their aspect ratio (like in the image above) instead of being squared when using images with different sizes for the height and width
Other than that, code looks good and everything is working as expected, so I'm pre-approving this PR! 🚀
Thanks for the review @thealexandrelara!
Good question. I'm going to ping @jarekmorawski about this. tl;dr Should we default to a square aspect ratio in the images of the Alternating Image and Text pattern? |
Unfortunately, that's not possible with the Image block: In that case, should we not have an aspect ratio by default and simply honor the existing aspect ratio of the image, @jarekmorawski? Users can still easily modify the aspect ratio in the sidebar if they want. |
In that case, yes, we should keep the original aspect ratio. Thanks for looking into it, Albert! 🙏 |
Makes sense. Thanks for your input, @jarekmorawski! |
Fixes #10290.
Testing
User Facing Testing
Desktop:
WooCommerce Visibility
Changelog