-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat(ScrollTo): use fulls URLs, allow replace and render anchor links #4030
Conversation
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.
LGTM 🙏
I just had the following questions/doubts while reviewing:
- The scroll item default role changed from
button
tolink
. I think this can be considered a breaking change. However, this change/fix makes sense to me sincehref
defaults totrue
. Was this intentional? relativeLinks
defaults tofalse
but I believe that to maintain the previous behaviour it should default totrue
. Can this change lead to any breaking change to the users that I'm not seeing?
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.
Looks good overall 👍
The navigationMode
feels like it should be the router's responsibility, but this is a good compromise.
A few notes regarding API & docs:
packages/core/src/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.tsx
Outdated
Show resolved
Hide resolved
packages/core/src/ScrollTo/Horizontal/HorizontalScrollListItem/HorizontalScrollListItem.tsx
Outdated
Show resolved
Hide resolved
…d render anchor links
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.
🚀
No description provided.