-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/date styling and validation #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…er' into wip/all-pr-2021-10-20
…21-10-20 Added date element styling
Added a media query to deal with field sizes on mobile. Make selectors more date field specific.
…' into wip/all-pr-2021-10-20
Date validation
The localgov_os_places Geocoder plugin has moved to the localgov_geo module. As such, localgov_forms.geocoder.schema.yml has also moved to the localgov_geo module and now lives on as localgov_geo.geocoder.schema.yml.
The manual address entry button labelled "Can't find the address?" is displayed at all times at the moment. This new configuration captures whether to reveal this button from the beginning or only after an address search has happened.
Display the Manual address entry button labelled "Can't find the address?" based on address lookup element configuration.
Adding a new Webform config where the Manual address entry button is displayed *after* an address search. This Webform is then used in a new test to verify the behaviour of the manual address entry button.
…dress-button-display-cfg "Can't find the address?" button display configuration
…alidation Date styling and validation
cb5349c to
7f72def
Compare
a4fd699 to
4378a76
Compare
Adnan-cds
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me. Thanks a lot.
I don't know if Javascript is the best way to move a form error message above its target form element. But this should do for now.
|
Hi Matt, Please note that if the error message placement is to be controlled from form-element.html.twig then this has to happen in the theme instead of the localgov_forms module. This means every site that wants this feature will have to override form-element.html.twig. Or at least the localgov_base theme should override it. Is that going to be a problem? |
|
Leaving this with @MattOz-CDS for now to make a call. |
The checkdate() function in PHP 8.x throws TypeErrors when any non-numeric argument is passed. In previous version of PHP it only logged a warning.
Suppress further PHP warning.
|
Hi Finn, |
|
Closing as I merged some unwanted commits to this pull request earlier. This pull request has been replaced with #25. |
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