Repository navigation
fix(text-input): ellipsize long labels and follow runtime text size - #5304
Open
Priyanshu0007 wants to merge 1 commit into
Open
Priyanshu0007 wants to merge 1 commit into
Priyanshu0007 wants to merge 1 commit into
Conversation
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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_scaleto 2.0 while running: the field resizes.