Skip to content

Right navbar column skips the section clicked #1965

@dylanh724

Description

@dylanh724

This was originally reported for sphinx-book-theme that seems to also have this bug on their own docs site (but, iirc, their main theme comes from this repo). See a full report with GIFs and links here:

executablebooks/sphinx-book-theme#853

Or repro the bug yourself here on your own docs:

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

  1. On the right column, click a header in the middle
  2. Now click the header +1 up. It will land on +2 up.

Edited by @trallard to copy content from the original issue in the executablebooks repo

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't workingneeds: investigationSomeone in the team needs to investigate and try and reproduce this issueneeds: more informationNeeds more information from the author before we can move forward

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions