-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/deep linking hannah #897
Conversation
HZ991
commented
Sep 30, 2024
- Added hash ref pushing for site links Re-instate the anchor links a the top of the pages for Accessibility and Code Tabs (as per Design tab) #713
- Added support for deep-linking in site links wip #622 deep linking #658 (with delayed scroll to account for component mounting time)
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
if (scrollToHash) { | ||
setTimeout(() => { | ||
scrollToSection(); | ||
}, 500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: I would setup like const DELAY_TIME_TO_SCROLL = 500;
outside not leave the magic numbers (for reference: https://eslint.org/docs/latest/rules/no-magic-numbers) .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added this to the PR