Skip to content

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
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