Skip to content

fix(text-input): ellipsize long labels and follow runtime text size - #5304

Open
Priyanshu0007 wants to merge 1 commit into
callstack:mainfrom
Priyanshu0007:fix/text-input-font-scale
Open

Priyanshu0007 wants to merge 1 commit into
callstack:mainfrom
Priyanshu0007:fix/text-input-font-scale

Conversation

@Priyanshu0007

Copy link
Copy Markdown

Motivation

At large text sizes a long TextInput label was cut off with no ellipsis, and a runtime text size change didn't resize the field. Labels now end in an ellipsis, and the field follows useWindowDimensions.

Related issue

Fixes #5294

Screenshots / Videos

Web, before / after:

textinput-5294-ios-before.mp4
textinput-5294-android-before.mp4

iOS, before / after:

textinput-5294-ios-after.mp4
textinput-5294-web-before.mp4

Android, before / after:

textinput-5294-web-after.mp4
textinput-5294-android-after.mp4

Test plan

Set a long label at the largest text size: it ends in "…". On Android, set font_scale to 2.0 while running: the field resizes.

At large text sizes a label that didn't fit was cut off at the field's end with no ellipsis, or wrapped onto a line that ran into the bottom indicator. The label now stays on one line and ends in an ellipsis where the input text ends, clear of the end accessory or error icon, at rest and floated. The outlined label's background spans only the label.

The field read the font scale once, when its module loaded, so a text size change while the app ran grew the text but not the field. It now reads the font scale from useWindowDimensions and resizes at once, as a cold start at that size does.

Fixes callstack#5294
@Doberjohn Doberjohn added this to the 6.1.0 milestone Nov 24, 2026
@Doberjohn

Copy link
Copy Markdown
Collaborator

Thanks for the videos! 6.0 now takes only regressions and major bugs, so this is on the 6.1.0 milestone and gets its review after 6.0.0.

This branch has not been deployed

No deployments
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.

TextInput: at large text sizes a long label is cut off with no ellipsis, and a text size change isn't applied until a reload

2 participants