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

TextField - ClearButton - fix right margin #3482

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

M-i-k-e-l
Copy link
Contributor

Description

TextField - ClearButton - fix right margin with preset={'outline'}

To test use:

<TextField value={'Test '} showClearButton preset={'underline'}/>
<TextField value={'Test '} showClearButton preset={'outline'}/>

Changelog

TextField - ClearButton - fix right margin with preset={'outline'}

Additional info

See internal channel

onClear={onClear}
testID={`${props.testID}.clearButton`}
onChangeText={onChangeText}
preset={props.preset}
Copy link
Collaborator

Choose a reason for hiding this comment

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

The ClearButton component shouldn't be aware of the preset. I think we should pass 'style' instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@Inbal-Tish Inbal-Tish assigned M-i-k-e-l and unassigned Inbal-Tish Jan 13, 2025
@M-i-k-e-l M-i-k-e-l assigned Inbal-Tish and unassigned M-i-k-e-l Jan 13, 2025
@M-i-k-e-l M-i-k-e-l requested a review from Inbal-Tish January 19, 2025 08:48
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