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

Add support for collapsing page content under headings #1671

Open
greatislander opened this issue Feb 2, 2024 · 2 comments
Open

Add support for collapsing page content under headings #1671

greatislander opened this issue Feb 2, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@greatislander
Copy link
Member

Is your feature request related to a problem? Please describe.

It's been requested that some pages load with their content collapsed under the page headers.

Describe the solution you'd like

We should handle this using a parse transform. To be determined:

  1. Which heading levels should collapse?
  2. What types of content should this apply to?
  3. What should the collapse/expand behaviour be? Can more than one section be expanded at once? Same behaviour as seen here? https://wecount.inclusivedesign.ca/advisory-panel/

Describe alternatives you've considered

Not applicable.

Additional context

Not applicable.

@greatislander greatislander added the enhancement New feature or request label Feb 2, 2024
@chosww
Copy link
Contributor

chosww commented Feb 7, 2024

Hey @carenwatkins, would you be able to provide answers to the 3 questions in the description?

@carenwatkins
Copy link
Contributor

carenwatkins commented Feb 14, 2024

@chosww @greatislander

Which heading levels should collapse?
Heading 2

What types of content should this apply to?
Can we choose to apply collapse / expand H2s on any content? For example, there may be an initiative page (like FWD) with a lot of content and could benefit from users having the option to collapse content (it can be overwhelming to have all that content on the page at once).

What should the collapse/expand behaviour be? Can more than one section be expanded at once?
People coming to the page should have control over what they want to expand and collapse within the content, therefore, each H2 can be actioned independently AND there should be global expand / collapse buttons as well. See sketch attached.

Screenshot 2024-02-14 at 12 40 52 PM

This task isn’t urgent but let me know what you think. Is this something that is doable in a reasonable time frame?

greatislander added a commit to chosww/wecount.inclusivedesign.ca that referenced this issue Jun 27, 2024
greatislander added a commit to chosww/wecount.inclusivedesign.ca that referenced this issue Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants