Skip to content
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

Fix toggled content shown when a checkbox is checked #203

Merged
merged 1 commit into from
Mar 29, 2016

Conversation

gemmaleigh
Copy link
Contributor

This content is currently set to display:block or display:none using
toggle().

Instead use toggleClass to add or remove the .js-hidden class, this takes
advantage of .js-enabled .js-hidden set by the govuk_template and fixes a bug where the content to be revealed currently isn’t shown, as the
.js-hidden class isn’t removed.

This should have been added in #198, but it appears only the fix for radio buttons was committed.

This content is currently set to display:block or display:none using
toggle(), by instead toggling the .js-hidden class, this takes
advantage of .js-enabled .js-hidden set by the govuk_template and fixes
a bug where the content to be revealed currently isn’t shown, as the
.js-hidden class isn’t removed.
@gemmaleigh gemmaleigh merged commit 174784d into master Mar 29, 2016
@aliuk2012
Copy link

Thank you for resolving this @gemmaleigh.

@gemmaleigh gemmaleigh deleted the bugfix-checkbox-toggled-content branch June 2, 2016 12:31
joelanman pushed a commit to joelanman/govuk_elements that referenced this pull request Jun 13, 2016
# 4.1.1

- Update Accessible Media Player to remove dependency on $.browser (PR
alphagov#206)

# 4.1.0

- Add support for sending the `page` option to
`GOVUK.analytics.trackEvent` (PR alphagov#203)
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.

2 participants