Scroll to Top Implementation #168755
Replies: 9 comments 6 replies
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
Hi there @bloo-berries 👋🏼 , Thanks for sharing this feedback I have gone ahead and reported this as this is already something available in the Discussions feature. In the meantime, you don't need a browser extension or custom script to quickly scroll back to the top of a page, another option is a keyboard shortcut. For Chrome: Command/Control + the Up arrow, I recommend searching your browser + device type to get the proper shortcuts. |
|
Hi, I would love to have this feature in the Github Action pages! |
|
My other suggestions/rationale for this implementation are:
Benefit to Copilot:
GitHub Actions:
Accessibility Rationale:
And even as it stands on this forum page, with your original suggestion, I had to change my key bindings, click out of this text box, then use the shortcut just to the top to get back to my own native navbar. |
|
I have one additional idea: a “scroll to top” button could also support keyboard and screen reader focus management. For example, when activated, it could automatically move focus to the main navigation bar or page heading, helping users who rely on assistive technologies know exactly where they are on the page. This would make it more than just a convenience feature and it would directly improve accessibility for blind/low-vision users. |
|
This would be a great addition to the PR page. When requesting a copilot review, the page becomes very long with all the suggestions and comments. After submitting the merge, it is a long way to scroll back to the top to access the navbar. Basically, anytime the navbar leaves the visible page, a scroll-to-top button should appear. |
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
|
This is actually a really solid accessibility suggestion. On long repository pages (README files, large issue threads, or long discussion pages), navigation can become difficult, especially for users relying on screen readers, magnification tools, or reduced-vision workflows. A native “Scroll to Top” control would make it significantly easier to quickly return to the repository header, navigation tabs, or search controls without needing to manually scroll through large sections of content. While browser extensions or custom scripts can provide similar behavior, relying on them shifts the responsibility to the user. A built-in control would provide a consistent and predictable navigation mechanism across GitHub, which is generally preferable from an accessibility perspective. A few implementation ideas that could work well: A floating “scroll to top” button that appears after the user scrolls past a certain threshold. Ensuring the control is keyboard accessible and reachable through standard tab navigation. Adding an ARIA label (e.g., aria-label="Scroll to top") so screen readers clearly announce its purpose. Smooth scrolling back to the repository header or main navigation area. GitHub already does a lot of good work around accessibility, so this would be a relatively small UI addition that could meaningfully improve navigation for users dealing with long pages. Overall, this feels like a practical accessibility enhancement rather than just a convenience feature, especially for users navigating large discussions or documentation-heavy repositories. |
|
I think this is a good idea. There is a Return to top button on this page. Why not on other pages that grow very long? Additional note: I don't think the button on this page is very useful for keyboard users, if you try to reach it with the focus the page will automatically scroll up and it disappears. |
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Question
GitHub Feature Area
UI/UX
Body
For blind/low vision nav, can we implement a native platform "scroll to top" button for repos/other relevant pages?
I don't see it currently, but it would wildly help the nav for long repos/discussion pages, etc.
Rationale for it being an accessibility feature is that I'm blind/low vision, and have found it difficult to navigate some long form content and losing my place/code spatial awareness 😂
I know there are browser extensions or custom scripts, but a native button would be great for accessible navigation.
All reactions