cds-snc / design-gc-conception

MIT License
4 stars 0 forks source link

Requirements: Form components - add minlength and maxlength #1175

Open daine opened 1 month ago

daine commented 1 month ago

πŸ“‡ User story

βœ… Definition of Done / Outcomes

πŸ“œ Acceptance criteria

πŸ“ More info

A support ticket came in saying the user is unable to set minlength and maxlength. Previously, we were using the size component to set the maxlength but moved away from it because it severely limits the component and only adds further confusion. After talking to design (Dylan), we'd like to rethink our approach. Here is the initial proposal:

πŸ¦€ Another thought for consideration: adding a character count indicator for inputs. Gov UK recommends doing so if you are limiting the characters

❇️ Freshdesk ticket: https://cds-snc.freshdesk.com/a/tickets/19158