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

show-hide-content should work with new radio/checkbox markup #390

Merged
merged 1 commit into from
Mar 17, 2017

Conversation

robinwhittleton
Copy link
Contributor

  • update the selectors in show-hide-content to work with both the new and original markup. Simply removing the .block-label left it feeling a bit unscoped, so I’ve added a direct child selector. This potentially could cause problems, but it works with our recommended markup old and new at least.
  • update the spec to follow the new markup.
  • update the documentation to recommend the new markup.

Things to consider:

  • are the new selectors too restrictive?
  • should we be testing both old and new markup?
  • how could we decouple this in future further?

- update the selectors in show-hide-content to work with both the new and original markup. Simply removing the `.block-label` left it feeling a bit unscoped, so I’ve added a direct child selector. This potentially could cause problems, but it works with our recommended markup old and new at least.
- update the spec to follow the new markup.
- update the documentation to recommend the new markup.
@gemmaleigh
Copy link
Contributor

I'm keen to merge this as the examples of 'Conditionally revealing content' are currently broken for GOV.UK elements.

Let's get this in and bump the toolkit, if there are suggestions for a better way of achieving this, we can roll those out later.

@gemmaleigh gemmaleigh merged commit c88df49 into master Mar 17, 2017
@dsingleton dsingleton deleted the fix-show-hide-content branch March 17, 2017 12:54
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