getsentry / sentry-docs

Sentry's documentation (and tools to build it)
https://docs.sentry.io
Other
326 stars 1.43k forks source link

Auto-scroll to active element in nav sidebar #10978

Open mydea opened 1 month ago

mydea commented 1 month ago

Problem Statement

Today, when you click on an element in the nav sidebar that is below the fold, you get to the new page, but loose focus in the sidebar. This is a bit confusing/disorienting. See:

https://github.com/user-attachments/assets/c0507f33-190e-4119-9765-72933535492f

Solution Brainstorm

We should either keep scroll position in the sidebar, or at least scroll down to the active element on pageload.

a-hariti commented 1 month ago

I think we had this functionality a while back and removed it @mydea

I don't remember what the exact issue was