-
Notifications
You must be signed in to change notification settings - Fork 219
Keep top margin for create account section in editor #5633
Conversation
Hello @sunyatasattva 👋 Given that you worked on #5191, I manually added you as a reviewer. If you don't have the capacity to do the review, feel free to unassign you. 😀 |
Size Change: +43 B (0%) Total Size: 745 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.
This LGTM @nielslange thanks for spotting that. We did some regression testing and we didn't see that one.
I wonder if, long term, the best solution is adding exceptions to the margin rule instead of maybe taking a more generic approach. For now, I think this is totally fine! 👍
assets/js/blocks/cart-checkout/checkout/inner-blocks/checkout-terms-block/editor.scss
Outdated
Show resolved
Hide resolved
That's true. How would you suggest proceeding in this case, though, to solve the regression bug? |
What about adding bottom margin to the text input containers? Can we try that and see if that doesn't create any disaster? Because of how margin collapsing works, that shouldn't be a disaster. If that makes it a disaster (perhaps because they are floating), then we can just divide the current input margin by two between top and bottom. What do you think? |
af7b9ec
to
a05ef61
Compare
In #5191, we've adjusted the T&C checkbox position. This change lead to the fact that the top margin of the create account section disappeared. This PR aims to correct this regression.
Screenshots
Testing
Account Options » Allow shoppers to sign up for a user account during checkout
.Create an account?
section has sufficient top margin.User Facing Testing
Changelog