stripe / react-stripe-js

React components for Stripe.js and Stripe Elements
https://stripe.com/docs/stripe-js/react
MIT License
1.77k stars 272 forks source link

[BUG]: ExpressCheckoutElement Inconsistent Row Rendering #534

Open StevenGlrz opened 1 month ago

StevenGlrz commented 1 month ago

What happened?

I have the following

<ExpressCheckoutElement
      options={{
          layout: {
              overflow: "never",
              maxColumns: 0,
          },
          buttonType: {
              applePay: "book",
              googlePay: "book"
          },
          buttonHeight: 40,
          paymentMethods: {
              applePay: "always",
              googlePay: "always",
              link: "never"
          }
      }}
/>

which renders apple pay and google pay buttons in one row as expected

Screenshot 2024-10-08 at 11 59 26 PM

But if I change buttonType from book to plain, it renders on two rows. I would expect this to still render in one row.

Screenshot 2024-10-09 at 12 00 18 AM

Environment

Safari & Chrome

Reproduction

No response

stale[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.