Closed Asin-Junior-Honore closed 3 months ago
Hey @aps08 , I have added a test file for the new ScrollContext. Kindly review at your earliest convenience.
Pre-commit is fine. @anandbaraik @samyak269 review this.
@aps08 looked at the PR, tested locally and navigation links scroll to top are working fine. Test for ScrollContext is passing. @Asin-Junior-Honore, I have added a comment, please take a look and change it. @samyak269 please review it and once it's fine we can merge. CC: @aps08
hey @anandbaraik thanks for the review, I would implement the requested changes as soon as possible thanks😊
hey @anandbaraik I have made the requested changes. kindly review, thanks😊
@Asin-Junior-Honore Changes are deployed and working properly. And it is working fine. Thank you for your contribution.
Summary
Fixes issue #338.
Description
Updated
ScrollContext.js
to include a scroll-to-top functionality when navigation links are clicked. This ensures that the user is brought to the top of the new page upon navigation.How to Test the Changes
Clone the repository and switch to the branch where this PR is made:
Navigate to the client directory and ensure Yarn is installed and dependencies are up to date:
Start the application:
Navigate to any page with scrollable content.
Click on any navigation link within the application.
Verify that the page scrolls to the top upon navigation.
Context
The issue occurred when users navigated within the application; the page did not reset to the top, causing a poor user experience. This PR addresses this by implementing a scroll-to-top functionality in
ScrollContext.js
.Checklist