govuk-design-system icon indicating copy to clipboard operation
govuk-design-system copied to clipboard

Emphasise that error messages should state each disallowed character

Open terrysimpson99 opened this issue 2 years ago • 2 comments

What

Give a brief description of the style, component or pattern you want to propose.

Why

Explain why you think this should be added to the GOV.UK Design System.

  • What evidence do you have that it's needed by multiple services across government?
  • What evidence do you have that it meets the needs of the users of those services?
  • Have you checked that it doesn't already exist in the GOV.UK Design System?

Anything else

Include links to any examples, research or code to support your proposal, if available.

terrysimpson99 avatar May 30 '22 09:05 terrysimpson99

Guidance currently refers to two scenarios

  1. If the input uses characters that are not allowed and you know what the characters are
  2. If the input uses characters that are not allowed and you do not know what the characters are

It doesn't indicate preference for either scenario. I propose guidance is updated to indicate stating each disallowed character in the error message is the default. A recent discussion on slack suggested extra development effort is required to state each disallowed character but it is a legitimate request.

terrysimpson99 avatar May 30 '22 10:05 terrysimpson99

I've transferred this issue from the backlog repo as it's about making a specific improvement to the guidance for an existing component.

36degrees avatar Jul 19 '22 08:07 36degrees