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 expand/collapse-all button for API doc details #920

Merged
merged 6 commits into from
Jun 5, 2024

Conversation

brianrourkeboll
Copy link
Member

@brianrourkeboll brianrourkeboll commented Jun 4, 2024

Addresses the other suggestion in #916.

  • Add button for expanding/collapsing all member doc details.
expand-collapse-3.mp4

I have the buttons operating on the entire document. When toggled, the preference (all expanded or all collapsed) is saved to local storage. An alternative could have been to have independent expand/collapse-all buttons for each section (e.g., constructors instance members, static members, etc.), and no persistence to local storage.

To maintain parity with the behavior of the theme toggle button, I have the new button showing the state that clicking it will cause rather than the current state, even though I think I might personally prefer it the other way around.

Copy link
Collaborator

@nojaf nojaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another solid PR Brian! Thank you!

@nojaf nojaf merged commit f8a42dc into fsprojects:main Jun 5, 2024
3 checks passed
@brianrourkeboll brianrourkeboll deleted the deets-button branch June 5, 2024 13:11
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