-
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
Cover Block: Fix focal point error when the Featured Image is applied #40643
Cover Block: Fix focal point error when the Featured Image is applied #40643
Conversation
This should be an easy one for backport consideration. Fixes a bug related to the new Featured Image support in Cover blocks coming in 6.0. Testing and review appreciated 🙏 |
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.
Thanks for the fix 🚀 Works as intended
Thanks @fabiankaegy, will 🚢 once checks pass. |
I cherry picked this change into |
What?
There was a bug in the implementation of the Featured Image support. On the frontend, the x value for the focal point was set for both x and y. This PR corrects that.
Why?
Focal point would not work otherwise when the Cover Block was set to display the Featured Image.
How?
Simply replace the incorrect "x" with "y".
Testing Instructions
Screenshots or screencast
Editor
Before
After