-
Notifications
You must be signed in to change notification settings - Fork 11
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
Option to Right align the text inside input text field. #575
Comments
@ppurumala can you elaborate about the use case when you need to right-align the content? |
Thank you @ppurumala, that's a perfect example, we'll investigate the possibility to justify content for the current review of the input component. |
Hi,
Please let us know if this can be taken ahead. |
Hi @Anubhav122, Some considerations about the proposal:
Figure 01. Right align value The label will still be left-aligned.
Figure 02. Eye movement schema using right align values
Figure 03. Label alignment. Extracted from the article "Top, Right or Left Aligned Form Labels" by Luke Wroblewski From where we need to decide if we are going to open the possibility to align also the label when facing this particular scenario. In conclusion, the alignment of the value and the use case presented has some implications that cannot be solved just by adding a
Another important consideration about the change is that this component will be deprecated soon, replaced by a new input-text where we have already included the consideration of this issue in our discussions. I understand the value and improvement that having this functionality in the |
Had a discussion with CDK team and team will look on this |
Right align of the |
@raquelarrojo Could you please let us know if there is plan for this feature in this release? |
Is your feature request related to a problem? Please describe.
Option to Right align the text inside input text field. We have a requirement to show amount field on the screen, and business team wants that to be right aligned inside the text field.
We request this change to happen in this component: https://developer.dxc.com/tools/react/3/#/components/input
Describe the solution you'd like
There should be a attribute called 'align' when value given as 'right', the text should be on the right side inside the text field.
Describe alternatives you've considered
There is no alternative for this requirement.
Please revert if this is a not a valid request or location to raise this issue.
The text was updated successfully, but these errors were encountered: