Skip to content

TextField - Right Icon #462

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

Merged
merged 4 commits into from
Jul 15, 2019
Merged

TextField - Right Icon #462

merged 4 commits into from
Jul 15, 2019

Conversation

Inbal-Tish
Copy link
Collaborator

Move right icon to text input render to allow on both expandable and non-expandable inputs

@Inbal-Tish Inbal-Tish requested a review from ethanshar July 8, 2019 12:35
@ethanshar ethanshar assigned Inbal-Tish and ethanshar and unassigned Inbal-Tish Jul 11, 2019
if (this.shouldDisplayRightButton()) {
const {rightButtonProps} = this.getThemeProps();
const tintColor = _.get(rightButtonProps, 'style.tintColor', Colors.blue30);
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is kinda weird.
first, accessing to style as an object is not so great, cause it can be a number or an array
second, tintColor is an image style prop, not a button.
maybe to add an explicit prop to rightButtonProps for tintColor or iconColor

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. Thanks!

@ethanshar ethanshar merged commit de7cbbd into master Jul 15, 2019
@Inbal-Tish Inbal-Tish deleted the feat/rightIcon branch July 22, 2019 13:23
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.

2 participants