The frontend in question is currently using 3.8.0-play-28 but I have bumped that up locally to the latest version (3.21.0-play-28) and the issue still persists.
Description of the issue
The character count component displays a red outline on the input when the maximum number of characters is exceeded, but not for a form error (interestingly, the red outline is displayed for a form error when javascript is disabled).
Library or service name
play-frontend-hmrc
Library version (where applicable)
The frontend in question is currently using 3.8.0-play-28 but I have bumped that up locally to the latest version (3.21.0-play-28) and the issue still persists.
Description of the issue
The character count component displays a red outline on the input when the maximum number of characters is exceeded, but not for a form error (interestingly, the red outline is displayed for a form error when javascript is disabled).
Steps to reproduce the issue
Trigger a form error for a character count input (e.g. an empty submission). Here is a link to our implementation of the component - https://github.com/hmrc/manage-transit-movements-cancellation-frontend/blob/main/app/views/components/InputCharacterCount.scala.html
Actual vs expected behaviour
The outline of the input remains black when it should be red.
Environment (where applicable)