Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Text character count #414

Closed
brightpixels opened this issue Feb 9, 2023 · 1 comment
Closed

Text character count #414

brightpixels opened this issue Feb 9, 2023 · 1 comment
Assignees
Labels
new component new component
Milestone

Comments

@brightpixels
Copy link
Collaborator

brightpixels commented Feb 9, 2023

Some of our text input have a limit. To help users, it would be great to be able to specify how many characters left before the user hits the limit. We are using this library GDS styling so something like this would be great: https://design-system.service.gov.uk/components/character-count/

Key features:

  • Developer should be able to specify the character limit number
  • Developer should be able to pass in the character limit prompt message (one when JS is enabled, and another for when non-js is disabled)
  • HTML structure should match GDS markup (with ability to set css classes) or the developer should be able to specify the HTML markup
  • Character should count down when JS is enabled

Progressive enhancements:

  • Please take into account how this component behaves without javascript
  • Without Javascript, the prompt message should be static
  • With Javascript, the prompt message should be dynamic to inform use how many characters left
@szilvihorvath szilvihorvath self-assigned this Feb 15, 2023
@szilvihorvath szilvihorvath added the new component new component label Feb 15, 2023
@daniele-zurico daniele-zurico added this to the 0.7 milestone Mar 2, 2023
@daniele-zurico daniele-zurico assigned Ibabalola and unassigned Ibabalola Mar 2, 2023
@daniele-zurico
Copy link
Contributor

closed by #419

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
new component new component
Projects
None yet
Development

No branches or pull requests

4 participants