Skip to content

Conversation

@Adnan-cds
Copy link
Contributor

Recreating #20 with the correct commits. Original author is @MattOz-CDS

Summary of change

We want inline validation error messages to appear above form input fields as per the GDS pattern
https://design-system.service.gov.uk/components/error-summary/

To test

  • Enable the LocalGov forms module
  • Create a form with form elements that are required
  • In the forms behaviour settings disable client-side validation
  • Complete and submit a form with errors
  • Verify that validation errors appear above the erroneous input field

MattOz-CDS and others added 30 commits October 19, 2021 18:49
Added a media query to deal with field sizes on mobile. Make selectors more date field specific.
@Adnan-cds Adnan-cds requested review from ekes and finnlewis August 8, 2022 13:48
Copy link
Member

@finnlewis finnlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested locally and seems to work as expected, noting that the errors don't display above the field unless we address that in the theme / twig template.

@Adnan-cds
Copy link
Contributor Author

Thanks for the approval. Merging... @MattOz-CDS @finnlewis

@Adnan-cds Adnan-cds merged commit 07f4b53 into 1.x Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants