You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TextInput: with a suffix, the input text aligns toward the suffix instead of the start #5246
With a prefix and a suffix, the placeholder and the typed text sit right next to the suffix instead of starting after the prefix, on iOS and Android. src/components/TextInput/utils.ts sets textAlign toward the suffix (hasSuffix === isRTL ? 'left' : 'right') for both variants. In 5.x the input start-aligned (the textAlign prop, else the layout direction), so this changed in 6.x.
Expected behaviour
The input text starts after the prefix, as in 5.x and in Material's text fields. An app that wants end-aligned text (an amount field) still sets textAlign in style.
How to reproduce?
Render a TextInput with a label, a prefix ("$"), a suffix ("/100") and a placeholder.
Activity
fix(text-input): start-align the input text when a suffix is set (cal…