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 toggle behaviour when JS disabled #551

Merged
merged 2 commits into from Oct 3, 2018
Merged

Conversation

vanitabarrett
Copy link
Contributor

@vanitabarrett vanitabarrett commented Oct 1, 2018

Trello: https://trello.com/c/LQKpXVSw/186-audit-components-that-use-a-toggle-and-update-to-hide-the-toggle-link-when-js-is-disabled

Previously, these components would auto-expand all contents when JS was disabled (which is good), but also continue to show the toggle link which would be confusing to users. This PR only shows the toggle link if JS is enabled.

Before (taxonomy navigation)

screen shot 2018-10-01 at 15 13 29

After (taxonomy navigation)

screen shot 2018-10-01 at 15 12 47

Before (related navigation)

screen shot 2018-10-01 at 15 13 07

After (related navigation)

screen shot 2018-10-01 at 15 12 29

Links:
https://govuk-publishing-compon-pr-551.herokuapp.com/component-guide/related_navigation
https://govuk-publishing-compon-pr-551.herokuapp.com/component-guide/taxonomy_navigation

@benthorner benthorner temporarily deployed to govuk-publishing-compon-pr-551 October 1, 2018 14:09 Inactive
@benthorner benthorner temporarily deployed to govuk-publishing-compon-pr-551 October 1, 2018 14:17 Inactive
@benthorner benthorner temporarily deployed to govuk-publishing-compon-pr-551 October 1, 2018 14:20 Inactive
@benthorner benthorner temporarily deployed to govuk-publishing-compon-pr-551 October 1, 2018 14:27 Inactive
@benthorner benthorner temporarily deployed to govuk-publishing-compon-pr-551 October 1, 2018 14:39 Inactive
@benthorner benthorner temporarily deployed to govuk-publishing-compon-pr-551 October 3, 2018 08:57 Inactive
@benthorner benthorner temporarily deployed to govuk-publishing-compon-pr-551 October 3, 2018 14:50 Inactive
Vanita Barrett added 2 commits October 3, 2018 14:51
When JS is disabled, we want to expand all content normally hidden behind a toggle, and hide the toggle link.
When JS is disabled, we want to expand all content normally hidden behind a toggle, and hide the toggle link.
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.

None yet

3 participants