Prevent Express Checkout block from being cut off #7152
Prevent Express Checkout block from being cut off #7152
Conversation
The release ZIP for this PR is accessible via:
|
Size Change: +8 B (0%) Total Size: 874 kB
ℹ️ 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.
Thank you for working on this, @nielslange! It works great! 👍
I see we have some overlapping/cutting on the step number as well. I think we can fix both of these by adding some padding under .block-editor-block-list__layout
in assets/js/blocks/checkout/styles/editor.scss
file:
Before | After |
---|---|
Thanks for your review, @tarunvijwani, and suggesting the change. I just applied it, but went with
|
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.
Thank you, @nielslange! The reason why I wanted to add padding everywhere as it will fix it from all sides. It is looking good now. However, on the other sides, we still have some overlapping screenshots:
It is not visible though, it won't impact any user experience, and we have this on the Cart block as well. Approving the changes, let's 🚢 it. 👍
I would not call these overlaps, @tarunvijwani. By default, Gutenberg shows the border in synch with the edges of a block: In comparison, the Express Payments block and the Step Numbers both overlapped, meaning they were crossing the border of the block. That said, thanks for reviewing this PR and for explaining what you had in mind by "overlapping" elements. |
Gotcha! Thank you, @nielslange, for sharing the details! 🙂 |
* Prevent Express Checkout block from being cut off * Prevent step numbers from being cut off in editor
Fixes #6885
Notes
When activating Express Checkout as a payment option, the Express Checkout block is cut off when selecting the Checkout block in the editor. This PR aims to solve this problem.
Screenshots
Testing
User Facing Testing
/wp-admin/admin.php?page=wc-settings&tab=checkout
and activate the payment methodStripe
so that the Express Payment block becomes visible.WooCommerce Visibility
Performance Impact
Changelog