Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Add govuk showhide content #100

Merged
merged 3 commits into from
Aug 18, 2016
Merged

Add govuk showhide content #100

merged 3 commits into from
Aug 18, 2016

Conversation

gemmaleigh
Copy link
Contributor

@gemmaleigh gemmaleigh commented Aug 18, 2016

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.

To be tested:

Checkboxes:
http://localhost:3000/patterns/checkboxes-reveal/01/

Radio buttons
http://localhost:3000/patterns/radio-buttons-reveal/01/

This is to test GOVUK.ShowHideContent(), which is to be added to the
govuk_frontend_toolkit.
Related PR for the front end toolkit:
alphagov/govuk_frontend_toolkit#305

Related PR for elements:
alphagov/govuk_elements#287
@cfq cfq merged commit 7e746cd into master Aug 18, 2016
@cfq
Copy link
Contributor

cfq commented Aug 18, 2016

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants