sphinx-book-theme icon indicating copy to clipboard operation
sphinx-book-theme copied to clipboard

Right navbar column skips the section clicked

Open dylanh724 opened this issue 1 year ago • 3 comments

Describe the bug

context When I click a right column child header, it skips to the section above or below my cursor and awkwardly highlights the incorrect section:

firefox_TzsPDODW5T

expectation When I click on a header anchor link on the right column nav, I expect it to go straight there and highlight the correctly selected link.

bug Perhaps it has to do with smoothing scripts?

Reproduce the bug

Repro'd via your own release notes: Try clicking around the right nav (in Firefox desktop, at least) - it goes wild:

firefox_OpQkqUztHb

List your environment

No response

dylanh724 avatar Aug 14 '24 11:08 dylanh724

To add: The body anchors appropriately as expected; it's just the highlighted navbar item. Since the bug repro'd live on your site, it should be pretty easy to play with.

dylanh724 avatar Aug 14 '24 11:08 dylanh724

Heya, know anything about this @gregcaporaso ?

dylanh724 avatar Aug 22 '24 06:08 dylanh724

This can partially be repro'd on PyData:

https://pydata-sphinx-theme.readthedocs.io/en/stable/examples/kitchen-sink/admonitions.html#attention

However, this one only goes +1 up; it won't go +1 down. Still probably the same cause, though.

dylanh724 avatar Aug 22 '24 06:08 dylanh724

I have a similar issue where complete sections do not get the vertical selection bar

geemang2022 avatar Jul 29 '25 17:07 geemang2022