This PR updates the JavaScript in application.js and replaces the showHideContent functionality with a newer version (to be added to the govuk_frontend_toolkit), I have duplicated this here for testing.
Later it can be included in this project via the govuk_frontend_toolkit and the files in /app/assets/javascripts/govuk/ can be removed.
The test cases which will be affected by this are those which conditionally reveal content - for both radio buttons and checkboxes.
This PR updates the JavaScript in
application.js
and replaces theshowHideContent
functionality with a newer version (to be added to the govuk_frontend_toolkit), I have duplicated this here for testing.Later it can be included in this project via the govuk_frontend_toolkit and the files in /app/assets/javascripts/govuk/ can be removed.
The test cases which will be affected by this are those which conditionally reveal content - for both radio buttons and checkboxes.
To be tested:
Checkboxes: http://localhost:3000/patterns/checkboxes-reveal/01/
Radio buttons http://localhost:3000/patterns/radio-buttons-reveal/01/