Skip to content
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

[Bug] Dark Theme for <PayPalButtons/> #584

Open
eriknyk opened this issue Nov 27, 2024 · 0 comments
Open

[Bug] Dark Theme for <PayPalButtons/> #584

eriknyk opened this issue Nov 27, 2024 · 0 comments

Comments

@eriknyk
Copy link

eriknyk commented Nov 27, 2024

Library used

Using react-paypal-js v8.7.0

🐞 Describe the Bug

Using react-paypal-js I cannot find a way (at least documented) to enable dark mode for component.

🔬 Minimal Reproduction

 <PayPalScriptProvider
    options={{
      clientId: PAYPAL_CLIENT_ID,
      components: "buttons",
      currency: "USD",
    }}
  >
  <PayPalButtons
    style={{ layout: "vertical" }}
    createOrder={createOrder}
    onApprove={onApprove}
  />
</PayPalScriptProvider>

😕 Actual Behavior

I couldn't find a way to display checkout buttons and card form in dark mode.

image image

🤔 Expected Behavior

Find a way to display checkout buttons and card form in dark mode. It looks there is a way to display buttons & card checkout form in dark mode, but no idea how. see [Additional Context] images below

🌍 Environment

  • Node.js/npm: - Node v20.13.1 / NPM 10.5.2
  • OS: - MacOS
  • Browser: - Chrome latest

➕ Additional Context

In the storybook, on canvas tab If you set the background color to dark, dark theme for buttons works fine even for one-time checkout form.

image image

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant