Skip to content

Fix TOC hierarchy on floating nav #556

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

Merged
merged 1 commit into from
Dec 21, 2022
Merged

Fix TOC hierarchy on floating nav #556

merged 1 commit into from
Dec 21, 2022

Conversation

sfc-gh-jgarcia
Copy link
Contributor

📚 Context

This PR fixes an issue reported by @arnaudmiribel a while back here where the table of contents on the documentation site was behaving in a strange way, hiding some titles and showing the wrong hierarchy.

This was caused by how we used to hide the first h1, which we don't want to show on the TOC, and this PR aims to fix that.

🧠 Description of Changes

  • Updated the code to remove the first title in the Javascript code instead of relying on CSS logic.
  • Updated styles to accommodate for the new hierarchy.

Revised:

Screenshot 2022-12-19 at 3 11 17 PM

Screenshot 2022-12-19 at 3 11 12 PM

Current:

Screenshot 2022-12-19 at 3 11 33 PM

Screenshot 2022-12-19 at 3 11 48 PM

💥 Impact

Size:

  • Small
  • Not small

🌐 References

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Copy link
Contributor

@snehankekre snehankekre left a comment

Choose a reason for hiding this comment

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

Thanks for the fix, Juan! Looks great

@snehankekre snehankekre merged commit be50775 into main Dec 21, 2022
@snehankekre snehankekre deleted the fix-toc-hierarchy branch December 21, 2022 07:06
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