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

♻️ Show all active sections in table of contents #804

Closed
wants to merge 1 commit into from

Conversation

MeganSteenkamp
Copy link
Contributor

Show all active sections as this will mean we can also show headings in our side navigation and the highlighted sections will be aligned. It removes the need to handle clicks when there are small sections at the bottom that have their anchor tags clicked.

Related thread: https://centrapay.slack.com/archives/C04B93QUDSM/p1696994426728949

Story: ✨ Migrate API Documentation

Test plan: Expect multiple sections to be highlighted in TOC when they are all visible.

Show all active sections as this will mean we can also show headings in our side navigation and the highlighted sections will be aligned.
It removes the need to handle clicks when there are small sections at the bottom that have their anchor tags clicked.

Related thread: https://centrapay.slack.com/archives/C04B93QUDSM/p1696994426728949

Story: ✨ [Migrate API Documentation](https://www.notion.so/centrapay/Lanterns-d784e8a5f9fa44328a5d0ae1fd85d37e?p=c6d64de29a2245358a5e9b7eed5edbcc&pm=s)

Test plan: Expect multiple sections to be highlighted in TOC when they are all visible.
@MeganSteenkamp
Copy link
Contributor Author

Closing due to design review - reverting to one active section at a time 🙌

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.

1 participant