Use scoped appearance values in PaymentSheet - #13769
Open
toluo-stripe wants to merge 1 commit into
Open
Conversation
toluo-stripe
force-pushed
the
tolu/appearance/scoped_payment_element_theme
branch
from
August 5, 2026 19:26
52e27eb to
4d2bd99
Compare
Contributor
|
Diffuse output: APKDEXARSC |
toluo-stripe
marked this pull request as draft
August 6, 2026 14:42
toluo-stripe
force-pushed
the
tolu/appearance/scoped_payment_element_theme
branch
from
August 6, 2026 14:56
4d2bd99 to
7240060
Compare
toluo-stripe
force-pushed
the
tolu/appearance/scoped_payment_element_theme
branch
from
August 6, 2026 15:01
7240060 to
2e379f5
Compare
Base automatically changed from
tolu/appearance/theme_mode_implementation
to
master
August 6, 2026 15:18
toluo-stripe
force-pushed
the
tolu/appearance/scoped_payment_element_theme
branch
3 times, most recently
from
August 7, 2026 18:48
3240b5f to
046c25e
Compare
Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com> Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com> Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com>
toluo-stripe
force-pushed
the
tolu/appearance/scoped_payment_element_theme
branch
from
August 7, 2026 18:51
046c25e to
2ba9632
Compare
toluo-stripe
marked this pull request as ready for review
August 7, 2026 19:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on parent PR #13481.
PaymentElementTheme, which derives immutable theme values fromPaymentSheet.Appearanceand resolves its configuredThemeMode.StripeThemesingleton in PaymentSheet-owned views.parseAppearance()and the legacyStripeThemeoverload for callers that have not migrated yet.Motivation
PaymentSheet appearance was parsed into process-wide mutable theme values. A composable could therefore read values written by a different PaymentSheet instance, and forced light or dark mode was not consistently available to every descendant. Scoping the converted appearance to the PaymentSheet composition makes the configured appearance the source of truth while retaining compatibility for unmigrated surfaces.
Testing
Screenshots
Not included. Forced light/dark palette selection and Android context UI mode are covered by Robolectric Compose tests.
Changelog
Not included in this internal implementation PR; the user-facing changelog will be handled with the completed stack.