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

Adding the conditional reveal from GOV.UK Elements... #967

Merged
merged 4 commits into from
Jun 7, 2018

Conversation

ian-leggett
Copy link
Contributor

We need to add the conditional reveal functionality on the likes of the radio buttons from GOV.UK Elements as the ability to use this pattern is missing in Assets Frontend.

Problem

The conditional reveal functionality does not work as its missing CSS rules and a initialisation on a JS function from GOV.UK Elements.

Solution

In the JavaScript call a new instance of the function constructor GOVUK.ShowHideContent() and initialise it. Then add the CSS rules that hide the content when JavaScript is active(we have these classes in Modernizr but these are different from the ones used in GOV.UK Elements).

Ian Leggett added 4 commits June 6, 2018 14:09
…as the component library wasn’t being cleaned out when just running the ‘component-library’ task on its own. These are now ran in sequence.
…ent() function from GOV.UK Elements so you can use the conditional reveal on radio buttons.
@stevenaproctor stevenaproctor merged commit 7c17829 into master Jun 7, 2018
hmrc-web-operations pushed a commit that referenced this pull request Jun 7, 2018
@matthewmascord matthewmascord deleted the SDT-845_conditional_reveal branch January 7, 2021 16:21
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