Skip to content

Conversation

@mich-elle-luna
Copy link
Collaborator

  • Use closest() to find the actual scrollable UL container
  • Calculate position relative to the scrollable container, not the sidebar
  • Use getBoundingClientRect() for accurate positioning
  • Position active link near the top with 20px padding for visibility
  • Fixes issue where scroll didn't work correctly for Develop/Operate/Integrate
  • Fixes Commands section scrolling too far

This improves the previous implementation by targeting the correct overflow-y-auto UL element that actually scrolls, rather than trying to scroll the sidebar nav element itself.

- Use closest() to find the actual scrollable UL container
- Calculate position relative to the scrollable container, not the sidebar
- Use getBoundingClientRect() for accurate positioning
- Position active link near the top with 20px padding for visibility
- Fixes issue where scroll didn't work correctly for Develop/Operate/Integrate
- Fixes Commands section scrolling too far

This improves the previous implementation by targeting the correct
overflow-y-auto UL element that actually scrolls, rather than trying
to scroll the sidebar nav element itself.
@github-actions
Copy link
Contributor

github-actions bot commented Oct 15, 2025

DOC-5824

@mich-elle-luna mich-elle-luna requested a review from a team October 15, 2025 22:02
Copy link
Contributor

@andy-stark-redis andy-stark-redis left a comment

Choose a reason for hiding this comment

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

Tested sidebar and in-page links, and directly pasting a URL into the URL bar - all seem to be working fine for all sections of the docs. Definitely approved :-)

Copy link
Collaborator

@rrelledge rrelledge left a comment

Choose a reason for hiding this comment

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

Thank you! I tested the RS section, and it looks good to me.

@mich-elle-luna mich-elle-luna merged commit 3f943a2 into main Oct 16, 2025
7 checks passed
@mich-elle-luna mich-elle-luna deleted the DOC-5824 branch October 16, 2025 18:08
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.

4 participants