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

fix: properly configure cursorColor for CardField on Android #806

Merged
merged 2 commits into from
Feb 11, 2022

Conversation

charliecruzan-stripe
Copy link
Collaborator

Summary

cursorColor wasn't being assigned on Android. setTint was added in Android 10 to programmatically change this color without relying on any XML, so let's use that.

On android, there's a bit more granularity, but to match iOS I think we should apply cursorColor to the highlight and the textSelectHandles.

android:
Screen Shot 2022-02-11 at 11 37 58 AM

ios:
Screen Shot 2022-02-11 at 12 10 54 PM

Motivation

fixes #766, parity with iOS

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

Copy link
Contributor

@michelleb-stripe michelleb-stripe left a comment

Choose a reason for hiding this comment

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

sweet! thanks for the quick change

@charliecruzan-stripe charliecruzan-stripe merged commit 28c7ead into master Feb 11, 2022
@charliecruzan-stripe charliecruzan-stripe deleted the charliecruzan/cursor-color-cardfield branch February 11, 2022 18:47
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.

Be able to change cursor color on Android
2 participants