-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement index to visualize the current and max length in Input and TextArea Components #1990
Comments
@davicostalf @beatrizmilhomem In terms of our current design for character length, I am only suggesting that we use color to indicate when the limit is reached (Figma). I'd like your opinion on this. This is not a must have feature, but if it makes sense we could already incorporate this in the implementation |
@felipepowlist There's no problem with incorporating the color in your context! You can also create a separate issue with this proposal, so that we can start mapping other possible scenarios and understand if it would make sense to rethink the counter in Shoreline. |
@myllenaalves It's possible to implement the counter using the Field props. @lucasaarcoverde @matheusps can you give more details here, please? |
Hi, @beatrizmilhomem! I didn't explore the |
About the small design adjustments: I discussed it with @felipepowlist, and in the content platform Figma proposal, we have an example where the character count can exceed the limit, and the value also displays the red error color. |
@myllenaalves @felipepowlist is the character limit a rule or just a recommendation for the user? The |
I'm late here, but answering to you @beatrizmilhomem this is a validation on the field, meaning the user cannot save the content if they exceed the character limit, this is why we are proposing the "error state". In the future, we will have "guidelines" for fields, and they will serve as recommendations. For these cases the warining state will be more appropriate. |
Problem
We need this index so the user can visualize the number of characters (current and the maxLimit) while typing the content.
Solution
Link to figma: https://www.figma.com/design/uVFkApBTiuckbOoMiTQY8j/%F0%9F%93%90-Form-handoff---1.0?node-id=40-30666&node-type=section&m=dev
Usage examples
Dependencies
No response
References
https://www.figma.com/design/uVFkApBTiuckbOoMiTQY8j/%F0%9F%93%90-Form-handoff---1.0?node-id=40-30666&node-type=section&m=dev
The text was updated successfully, but these errors were encountered: