Implement auto-scrolling to the selected component in the documentation on the first render/on a new tab. #1549
Labels
react-magma-docs
Improvements or additions to documentation
Milestone
Describe the bug
Need to implement auto-scrolling on the first render in the documentation to the selected component (id in the path).
To Reproduce
Steps to reproduce the behavior:
Component
tab;On this page
navigation;Expected behavior
The page automatically scrolls to the selected component. The user sees it.
Additional context
This can probably be solved as follows:
scrollIntoView
;getBoundingClientRect().top + window.scrollY
;Note that not all components may be rendered the first time, so scrolling may work unexpectedly.
The text was updated successfully, but these errors were encountered: