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(text-input): very long input label truncated when scaled #4414

Merged

Conversation

seb-zabielski
Copy link
Contributor

Motivation

The label in the TextInput component (both flat and outlined) is truncated when it is longer than the available width. This is expected behaviour, but the issue occurs when the label is moved over an input (focus on input or input with a value). The entire label is scaled, which causes the label to continue to be truncated even though we have space to show the rest of the content.

Goal

Increase maximum text width to the maximum possible space.

Related issue

#4350

Test plan

Use TextInput with very long label. You can use example app

Simulator Screenshot - iPhone 15 Pro - 2024-05-21 at 10 51 48

Simulator Screenshot - iPhone 15 Pro - 2024-05-21 at 10 51 16

@callstack-bot
Copy link

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

@gedu gedu added this to the 5.12.4 milestone May 21, 2024
@lukewalczak lukewalczak merged commit 1a82b2c into callstack:main Jul 27, 2024
3 checks passed
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.

4 participants