-
Notifications
You must be signed in to change notification settings - Fork 69
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
Ensure Equal Vertical and Horizontal Spacing Between ECE Buttons and WooPay Button #9169
Comments
Noting this occurs on PDP, Cart, Checkout and both blocks and shortcode. |
Hey team! Please add your planning poker estimate with Zenhub @lovo-h @cesarcosta99 @asumaran @reykjalin |
According to the acceptance criteria of this issue:
@pierorocca, should I focus only on the spacing issues, or should I also make changes so that the buttons look identical to the Figma file? For example, on the Cart page, the ‘Proceed to checkout’ button is located after the express checkout buttons, whereas in the Figma design, it is placed at the top.
On the checkout page, the title of the ‘Express checkout’ section is centered and currently it's aligned to the left.
Additionally, on checkout page's design, the three buttons are shown to take up the entire width of their container. However, currently, they are distributed in columns, switching to full width when the browser viewport is narrowed. Will the ECE buttons be displayed in rows or columns and rows depending on the viewport width? If so, at what point does it change from columns to rows? |
Just the spacing for now. I think those other design elements are Blocks specific and are being updated by Alex. |
It seems that the spacing between the ECE buttons on the shortcode-based cart and checkout pages cannot be adjusted because they are within an IFRAME. The design cannot be applied to those instances. Is that okay, @pierorocca? – Block-based pages look good because each button is a separate instance of ECE, allowing each button to be spaced independently The space between buttons according to the designs is @pierorocca would you like me to use the same spacing that Stripe uses so that the buttons appear correctly spaced? (only on shortcode) |
Yes, let's reduce to align with Stripe since that seems like our only option here. I prefer the reduced spacing. I find that the increased spacing creates a barcode stripe like effect that's distracting. @nikkivias we have a technical limitation here that will have impact in a multi gateway scenario. @asumaran could we double check with Stripe just in case? I don't think gridrowspacing and gridcolumnspacing can be used for ECE buttons. |
I'll double check their documentation. |
@pierorocca, good call on recommending the Elements appearance variables. The space looks as the proposed design now. |
Cool. @asumaran could we get side by side at 8px and 14px? The extra spacing looks unpleasant to me when the buttons are stacked. I'd like to do a quick informal poll on what people prefer and why. |
Oops sorry see the other version above... |
Quick poll @csmcneill @c-shultz @bborman22 @frosso @reykjalin @leonardola @asumaran which do you prefer left or right? |
@pierorocca here's how it looks with "8px" padding. Same as Stripe. |
@pierorocca I prefer the right option. The one that has less space between buttons. |
Yes, technically, Shopify is using |
@pierorocca I like the right one more |
@pierorocca let me know what value we want to use |
8px is looking really tight now that I've had time with it. @nikkivias thoughts on compromising down to 11px from 14px to avoid what to my eyes looks like a banding or striping effect at 14px? @asumaran regarding the - OR - separation, that was removed on shortcode for compatibility not because we preferred it. Too many sites had multiple - OR -, often in the wrong place or where there should have been none. We made a call to remove it to eliminate the compatibility issue at the expense of nice separation between Add to cart and Proceed to checkout buttons. |
@pierorocca, are you suggesting that I should remove the "or" separator from the block-based pages as well, or should I restore it on the shortcode-based pages? |
Neither. Just fyi to an earlier question of yours :) Blocks doesn't suffer the same issue of extra and rogue - or - separators. And we don't want to restore it on shortcode because it'll bring back all of the problems we got rid of. |
I prefer more spacing, but that could also be my deteriorating eyeballs 👀 Some questions:
|
Amazon Pay is a possibility for a 4th button and Link could potentially be a 5th. Buttons from other gateways will add to the count, but I don't think they should look different or be spaced differently. The design guidelines don't mention vertical spacing between buttons which may create inconsistencies over time in multi-gateway scenarios. Visually if it's 1 or 5 buttons, they should feel like a cohesive block. There's a point where if the spacing is too big and the buttons are decently wide, to my eyes it creates a banding effect similar to, but not as extreme, as the attached image. @asumaran mind adding an 11px option here for comparison? |
@pierorocca here's some screenshots with |
14px here for reference. I think 11px is the best balance of space but not too much space that the buttons looks like they're not part of a block of buttons. Up to @nikkivias here to make the final call since the size we pick, and add to the 3P guidelines, will impact everyone. |
Hi team. Vertical and horizontal spacing MUST be equal. From Slack:
It could be good to reference if it works with Shopify. We just want to use an even number gap, so I used 12PX instead. Here is the Public figma file |
Thanks @nikkivias! That takes us down from almost 27% larger spacing to 9% relative to Shopify. |
I updated the PR with 12px spacing and marked it as ready for review. |
Hi @nikkivias this seems to clash with the changes from your figma file that I implemented in woocommerce/woocommerce#50644 where I set it to |
@alexflorisca correct changing to 12px to be more space efficient and to soften what I was seeing as banding or striping effect at the larger spacing. We looked at Stripe's spacing (8px) and Shopify's spacing (11px) and settled on 12px. 14px puts us at almost double Stripe's spacing and 30% above Shopify's spacing. Sorry for the changeup. OK to update your PR to 12px? |
Sure no problem |
Description
Currently, the vertical spacing between ECE buttons and the WooPay button is not equal. The fix for this issue will ensure that the vertical and horizontal spacing between ECE buttons and the Woopay button are equal.
Acceptance criteria
Designs
An example of vertical and horizontal space not being equal:
An example of the vertical and horizontal space being equal:
Testing instructions
Additional context
The text was updated successfully, but these errors were encountered: