Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Open a subject accordion section when it contains a ticked checkbox #156

Merged
merged 2 commits into from
Sep 27, 2018

Conversation

tvararu
Copy link
Contributor

@tvararu tvararu commented Sep 27, 2018

Context

This is to maintain the state of the page when users browse back from the results

Also contains a fix for the IDs on subject filter checkboxes.

Changes proposed in this pull request

Adds an options object to the accordion component that allows consumers to pass in a forceSectionExpandedFn as an escape hatch. The reason for this approach is in order to hoist the checkbox-specific logic outside of the component itself.

They contained a space.
This is to maintain the state of the page when users browse back from
the results.
@tvararu tvararu requested a review from fofr September 27, 2018 10:59
@tvararu tvararu merged commit ab53a91 into master Sep 27, 2018
@tvararu tvararu deleted the expand-accordion-with-checkboxes branch September 27, 2018 11:03
@fofr
Copy link
Contributor

fofr commented Sep 27, 2018

👌

tvararu added a commit that referenced this pull request Sep 27, 2018
This is a better version of this previous PR:

- #156

This manually adds the `accordion-section--expanded` to relevant
sections using JavaScript that runs before the Accordions initialise.
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