Skip to content

Commit

Permalink
Merge pull request #2188 from alphagov/update-char-count-about-red-bo…
Browse files Browse the repository at this point in the history
…rder

Explain that red border depends on exceeding limit
  • Loading branch information
EoinShaughnessy authored May 18, 2022
2 parents d76304a + 316bc7f commit 022d59b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/character-count/index.md.njk
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ If a user tries to send their response with too many characters, you must show a

The error message tells users what went wrong and how to fix it. The count message provides live feedback and updates as a user types.

The input shows a red border only when the user tries to enter more than the character limit. If the number of characters is within the limit, the input does not show this border even when there's been an error. We felt it might cause the user difficulty if the border disappeared once they started typing.

Make sure errors follow GOV.UK guidance on [writing error messages](/components/error-message/#be-clear-and-concise) and have specific error messages for specific error states.

#### If the input is empty
Expand Down

0 comments on commit 022d59b

Please sign in to comment.