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: input icon custom color #3907

Merged
merged 2 commits into from
Jun 28, 2023
Merged

fix: input icon custom color #3907

merged 2 commits into from
Jun 28, 2023

Conversation

lukewalczak
Copy link
Member

Fixes: #3901

Summary

Corrects using the custom color in to TextInput.Icon.

Related issue

Test plan

Tested manually in the app on the second example.

@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here.

@lukewalczak lukewalczak added this to the 5.9.0 milestone Jun 16, 2023
@@ -131,7 +131,7 @@ const TextInputIcon = ({
icon,
onPress,
forceTextInputFocus,
color,
color: customColor,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add into the Omit the iconColor prop? to avoid confusion?

$Omit<
  React.ComponentProps<typeof IconButton>,
  'icon' | 'theme' | 'color'|'iconColor'
> 

@gedu
Copy link
Contributor

gedu commented Jun 26, 2023

LGTM, small suggestion

@callstack-bot
Copy link

Hey @lukewalczak, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@lukewalczak lukewalczak merged commit df00ed2 into main Jun 28, 2023
@lukewalczak lukewalczak deleted the fix/input-icon-color branch June 28, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

color prop in TextInput.Icon does not work
3 participants