Closed bc-sebastianszafraniec closed 1 month ago
Hey @bc-sebastianszafraniec can you please attach a screenshot with the other wallet buttons as well example paypal, google pay and apple. Thanks.
@animesh1987 Please find attached video how it behaves with more buttons in customer step. I see a problem in narrower screen when buttons starts to stack one on another. Looks like the Customer step was styled in such a way that each button needs to have 36px and not more.
https://github.com/bigcommerce/checkout-js/assets/130039975/b5fcfc27-bf43-437c-b099-5311b534fd53
Historically:
What do you suggest in this situation? Should we remove microtext from button in customer step (but only in customer step) to keep all buttons here the same size so they can stack on each other evenly as it was made originally? If yes, @vitalii-koshovyi you were changing the AmazonPay button design to one with microtext last time. Maybe you know if we should get some special approval to do this again if such a solution with removed microtext in customer step was functioning in BC before?
How it can look when microtext would be removed in customer step
Thanks @bc-sebastianszafraniec for the detailed information. I will say if possible we should remove the microtext to conform to the layout of buttons in this case.
cc @vitalii-koshovyi
@animesh1987 we couldn't remove it, it's a recommendation from Amazon. We recently had a specific ticket to return it😁
@animesh1987 As Vitaliy mentioned we need to keep the microtext on AmazonPay button. Please find my solution in last commit. Here is short video how it behaves.
https://github.com/bigcommerce/checkout-js/assets/130039975/9ef885c8-b08e-4804-9ac7-2cd73ab5f65d
What?
Adjusted AmazonPay button styling.
Why?
After changing button design back to one with microtext, at Customer step the microtext is overlaping the button. This only occurs in Customer step as here we are setting all accelerated checkout buttons (paypal, gpay, amazonPay) height to 36px.
Before:![Zrzut ekranu 2024-06-6 o 11 48 25](https://github.com/bigcommerce/checkout-js/assets/130039975/9ffaf20b-114b-4d1f-b6ac-b92552e283b6)
After:![Zrzut ekranu 2024-06-6 o 12 15 36](https://github.com/bigcommerce/checkout-js/assets/130039975/a633c4a2-679c-435b-ba48-dd0757befb40)
Testing / Proof
Tested manually
@bigcommerce/team-checkout