-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Rename aspect property to ratio to carry the defaultAspect in AspectRatioDropdown
#69085
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
Rename aspect property to ratio to carry the defaultAspect in AspectRatioDropdown
#69085
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 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. |
e7e20e6 to
046b727
Compare
|
The gutenberg/packages/block-editor/src/components/image-editor/aspect-ratio-dropdown.js Line 96 in e850c68
Additionally, the failing tests are unrelated to the changes introduced in this PR. |
|
I connected my Git account to my profile. |
|
@yogeshbhutkar, rebasing on top of the latest trunk should resolve the e2e test issue. |
Mamaduka
left a comment
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.
Works as expected ✅
046b727 to
d80ea1c
Compare
What, Why and How?
Closes #69084
This PR fixes an issue where selecting
Original Ratiowhile cropping an image applies an incorrect ratio to the Image block. Additionally, sinceOriginal Ratiorepresents the default state, it should be pre-selected by default.Testing Instructions
Image Blockand pick an Image.Toolbar ControlstoggleCropthenAspect Ratio.OriginalfromAspect Ratio.Imagenow properly reflects to theOriginalratio.Screencast
pr-demo-enhanced.mov