You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "active item" is the item originally selected in the hash, not the currently focused element, possibly causing confusion.
Motivation
Much like how the tutorials are scroll-synced to ease navigation, adding a scroll sync would make it easier to navigate around the docs. We have a lot of docs that have long sections, and it's easy to lose one's position.
Implementation
Most likely, we can adapt the scroll sync sidebar into a useActiveHash hook. Instead of passing in an item list, we can just query the DOM for page headings (or use the headings query to get them).
The text was updated successfully, but these errors were encountered:
Summary
Basic example
The "active item" is the item originally selected in the hash, not the currently focused element, possibly causing confusion.
Motivation
Much like how the tutorials are scroll-synced to ease navigation, adding a scroll sync would make it easier to navigate around the docs. We have a lot of docs that have long sections, and it's easy to lose one's position.
Implementation
Most likely, we can adapt the scroll sync sidebar into a
useActiveHash
hook. Instead of passing in an item list, we can just query the DOM for page headings (or use theheadings
query to get them).The text was updated successfully, but these errors were encountered: