Improve scroll-to-top button styling and behavior#3634
Open
ankitkr104 wants to merge 2 commits intogithub:mainfrom
Open
Improve scroll-to-top button styling and behavior#3634ankitkr104 wants to merge 2 commits intogithub:mainfrom
ankitkr104 wants to merge 2 commits intogithub:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the “scroll to top” button to better match the site’s white/gray theme and improve its UI consistency by switching to an icon-based, circular button and aligning the JS behavior with the new layout needs.
Changes:
- Updated the scroll-to-top button markup to use an inline SVG arrow icon with improved accessible labeling.
- Refreshed button styling (circular shape, white/gray palette, hover affordance, centered icon).
- Adjusted scroll handler to show the button using
display: flexfor consistent centering.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| assets/js/button.js | Shows/hides the button on scroll, updated to use display: flex when visible. |
| assets/css/button.scss | Restyles the button to a circular white/gray design and sizes the SVG icon. |
| _includes/footer.html | Replaces text label with an inline SVG icon and adds aria-label. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves the scroll-to-top button so it is cleaner, more accessible, and visually aligned with the site's white/gray theme.
Changes made
Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.