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

Allow CardMultilineWidget's TextInputLayout's to be styled #2646

Merged
merged 2 commits into from
Jul 16, 2020

Conversation

smaskell-stripe
Copy link
Contributor

Summary

Introduce a base style Stripe.Base.CardMultilineWidget.TextInputLayout, and
override it with Stripe.CardMultilineWidget.TextInputLayout to allow for
user customization.

This is similar to #2002

Screenshot_1594863000

Motivation

Fixes #2628

Testing

Tested manually

</style>

<style name="Stripe.CardMultilineWidget.TextInputLayout"
parent="Stripe.Base.CardInputWidget.TextInputLayout" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be Stripe.Base.CardMultilineWidget.TextInputLayout?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoops, good catch.

@mshafrir-stripe
Copy link
Collaborator

I wonder if we should create an entry in the example app to show styling of our widgets?

@smaskell-stripe
Copy link
Contributor Author

I wonder if we should create an entry in the example app to show styling of our widgets?

Yeah, that would be cool. Now that you mention that though, I realized there probably isn't a way to scope this to a single activity/view. Since we're referencing a style directly, as soon as you create a style with that name, it will be used for all instances of the widget. May still need more thought here, though this patch is still strictly better than what we had before

@smaskell-stripe smaskell-stripe merged commit e35ae25 into master Jul 16, 2020
@smaskell-stripe smaskell-stripe deleted the smaskell/card-widget-theme branch July 16, 2020 17:50
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.

CardMultiLineWidget: Not respecting Application theme
2 participants