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

Update text size for CardInputWidget fields #1930

Merged
merged 1 commit into from
Dec 6, 2019
Merged

Conversation

mshafrir-stripe
Copy link
Collaborator

For lower-density screens, the text size needs to be reduced

ciw_text_small

ciw_text_normal

For lower-density screens, the text size needs to be reduced
@mshafrir-stripe mshafrir-stripe merged commit 2ea1f30 into master Dec 6, 2019
@mshafrir-stripe mshafrir-stripe deleted the ciw-text-size branch December 6, 2019 18:40
mshafrir-stripe added a commit that referenced this pull request Dec 23, 2019
The `android:textSize` attribute in `card_input_widget.xml` was
hardcoded in #1930, preventing styling of the `CardInputWidget`'s
EditText fields.

Introduce a base style `Stripe.Base.CardInputWidget.EditText`, and
override it with `Stripe.CardInputWidget.EditText` to allow for
user customization.

For example, in your app's `style.xml`, if you add the following:

```
<style name="Stripe.CardInputWidget.EditText" parent="Stripe.Base.CardInputWidget.EditText">
    <item name="android:textSize">22sp</item>
    <item name="android:textColor">@android:color/holo_blue_light</item>
    <item name="android:textColorHint">@android:color/holo_orange_light</item>
</style>
```

Fixes #1997
mshafrir-stripe added a commit that referenced this pull request Dec 24, 2019
The `android:textSize` attribute in `card_input_widget.xml` was
hardcoded in #1930, preventing styling of the `CardInputWidget`'s
EditText fields.

Introduce a base style `Stripe.Base.CardInputWidget.EditText`, and
override it with `Stripe.CardInputWidget.EditText` to allow for
user customization.

For example, in your app's `style.xml`, if you add the following:

```
<style name="Stripe.CardInputWidget.EditText" parent="Stripe.Base.CardInputWidget.EditText">
    <item name="android:textSize">22sp</item>
    <item name="android:textColor">@android:color/holo_blue_light</item>
    <item name="android:textColorHint">@android:color/holo_orange_light</item>
</style>
```

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

Successfully merging this pull request may close these issues.

6 participants