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

Remove TextInput cursor color changes with selectionColor prop changes #1792

Merged
merged 3 commits into from
Apr 13, 2023

Conversation

lenaic
Copy link

@lenaic lenaic commented Apr 13, 2023

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

The caret color on macOS should stay visible at all times. This changes the behavior of the singleline and multiline TextInput to avoid changing the caret color.

Changelog

[macOS] [CHANGED] - TextInput selectionColor won't change cursorColor

Test Plan

In the following recordings, the caret color is set to the system default for a TextInput with a non-default selection color.

Light mode:

Screen.Recording.2023-04-13.at.18.59.04.mov

Dark mode:

Screen.Recording.2023-04-13.at.18.59.42.mov

@lenaic lenaic marked this pull request as ready for review April 13, 2023 17:34
@lenaic lenaic requested a review from a team as a code owner April 13, 2023 17:34
Copy link
Collaborator

@Saadnajmi Saadnajmi left a comment

Choose a reason for hiding this comment

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

Left some comments

@lenaic lenaic force-pushed the fix-textinput-cursor-color branch from 5223fc7 to b144fb6 Compare April 13, 2023 21:16
@Saadnajmi Saadnajmi enabled auto-merge (squash) April 13, 2023 22:25
@Saadnajmi Saadnajmi merged commit 3ea16bd into microsoft:main Apr 13, 2023
16 of 17 checks passed
@lenaic lenaic deleted the fix-textinput-cursor-color branch April 13, 2023 22:46
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.

None yet

2 participants