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

Set sheet elevation to 0 to prevent dark mode lightening #7584

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

tillh-stripe
Copy link
Collaborator

@tillh-stripe tillh-stripe commented Nov 3, 2023

Summary

This pull request fixes an issue where the surface color provided in PaymentSheet.Appearance would be lightened by an overlay when in dark mode. We set the sheet elevation to 0 to prevent this.

Motivation

Testing

  • Added tests
  • Modified tests
  • Manually verified

Screenshots

Before After
Screenshot_1699035333 Screenshot_1699035279

Changelog

  • [FIXED] Fixed an issue where PaymentSheet would render with a lightened surface color in dark mode.

Copy link
Collaborator

@jaynewstrom-stripe jaynewstrom-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@tillh-stripe tillh-stripe force-pushed the tillh/prevent-lightening-of-sheet-in-dark-mode branch from 5408966 to 1f46c04 Compare November 8, 2023 14:18
@tillh-stripe tillh-stripe marked this pull request as ready for review November 8, 2023 14:19
@tillh-stripe tillh-stripe requested review from a team as code owners November 8, 2023 14:19
@tillh-stripe tillh-stripe merged commit 2c34e34 into master Nov 8, 2023
7 checks passed
@tillh-stripe tillh-stripe deleted the tillh/prevent-lightening-of-sheet-in-dark-mode branch November 8, 2023 15:54
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

Successfully merging this pull request may close these issues.

2 participants