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

Added to the AJD V2 README Troubleshooting section #28

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions code/v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ add `enhance-element` class to any elements you want to enhacne when they come i


### Make in page navigation highlight only one section at a time
In order to do this all you have to do is look for the class `ajd_navigation` in the HTML and add a class to that same div called `singular-highlighting`
In order to do this all you have to do is look for the class `ajd_navigation` in the HTML and add a class to that same div called `singular-highlighting`.


### Adjusting the scroll to offset when using the in page navigation
Expand Down Expand Up @@ -252,9 +252,12 @@ Ideally, AJD sections should use Padding to offset where the sticky nav will sto


## Troubleshooting
Issue: When using the in page navigation links the scroll seems to be really slow and then fast or acts like it is getting stuck.
Issue: When using the in page navigation links the scroll seems to be really slow and then fast or acts like it is getting stuck.\
Solution: In your endscripts add
` <style>
html { scroll-behavior: auto !important;}
</style>
`

Issue: In page navigation links are not highlighting when the corresponding section is in view.\
Solution: Ensure each section has the "ajd_section" class on it.