-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#56498: Add aspect ratio support to Media Text block #68568
base: trunk
Are you sure you want to change the base?
#56498: Add aspect ratio support to Media Text block #68568
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @corentin-gautier, @biz2bytecoder. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Hi The aspect ratio option is available and the CSS is applied when "Crop image to fill" option is used, but it doesn't do anything. I believe the deprecation is correct but that new fixtures should be created and the existing fixtures regenerated. |
Hi @dhananjaykuber Are you available to continue working on this? |
Hi @carolinan |
Fixes #56498
What?
Adds aspect ratio control for images in the Media & Text block, allowing users to choose from predefined aspect ratios including Square (1:1), Standard (4:3), Portrait (3:4), Classic (3:2), Classic Portrait (2:3), Wide (16:9), and Tall (9:16).
Why?
Currently, users can only control image display by adjusting the overall media width or editing the image elsewhere. This enhancement provides direct control over image aspect ratios within the block editor, improving the user experience and layout control capabilities.
How?
aspectRatio
attribute to block.jsonTesting Instructions
Screenshots or screencast
screen-capture.2.webm