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 label positioning regression #3728

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

tjaniczek
Copy link
Collaborator

Summary

RNP v5.1.4 introduced regression in positioning of label on outlined TextInput:

image

This was caused by #3642. Reason:

Outlined TextInput uses additional mask to cover bigger round corners:

image

Working on performance of this component I decided to apply this mask only on outlined TextInput and only if the roundness is greater than 6pt. What I did not anticipated is that in V2 the this additional mask was used to cover left-most side of the label.

With this additional mask fixed, we can now unify math behind label for both V2 & V3. This should solve the issue.

Test plan

All outlined inputs were affected.

@github-actions
Copy link

github-actions bot commented Mar 6, 2023

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

Copy link
Member

@lukewalczak lukewalczak left a comment

Choose a reason for hiding this comment

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

Tested on three platforms and two MD versions, using the examples in the demo app and the issue is solved. Additionally didn't spot another problem related to the input label.

@lukewalczak lukewalczak merged commit 0396b88 into main Mar 6, 2023
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.

2 participants