reactjs / reactjs/react.dev

Accessibility: Add scroll back to top button

未關閉
#3,679 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
JavaScript
星號
11.8k
分支
7.9k
平均合併
1 天 11 小時
30 天內合併 PR
11

描述

When I go to a topic section, I need to scroll all the way up to go to the top of the page to access the navigation menu.

For example

  1. Go to Hooks FAQ
  2. Click a navigation button

The current behavior

I need to scroll all the way up to go to the table of contents.

Expected behaviour

Click a scroll to the top button for instant access to the navigation menu like this one.

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先在 Hooks FAQ 頁面上重現該行為,並檢視其導覽與目錄。使用連結的範例作為預期互動的參考。完成的標準是:在追蹤章節連結後,有一個可見的返回頂端控制項,能立即存取導覽,同時不會干擾文件頁面。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, react
領域
accessibility, documentation, frontend
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。