Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

New Component Request: Back to Top button

オープン
#825 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 7 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
scss
領域
design, frontend

調査の方向性

まず、issue にリンクされている既存の Neutral ボタンのスタイルと、再利用可能なコンポーネント向けのデザインシステムのパターンを確認します。要件に基づいて Back to Top の動作を定義します。右下への固定配置、スクロール後の遅延表示、レスポンシブな使用、両方の背景上での軽いスタイルです。コンポーネントがこれらの動作を満たし、短いページでも目立ちすぎなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

Design 🎨
Please describe the use case(s) for this component

On a long page it is useful to have a quick navigate to top option. (see original bedrock issue: https://github.com/mozilla/bedrock/issues/9910)

The button should not appear on pages that are not long enough to need this option

Please provide any designs or previous implementations of the proposed component
back-to-top

potential to use Neutral button styling: https://protocol.mozilla.org/components/detail/button--neutral.html

Please describe what this component does in the following conditions

  • Dark or light background, stays light background and dark arrow up icon
  • When viewed in a mobile/responsive viewport: same positioning as desktop, about 1em from bottom right corner, position fixed & sticky (appears after user scrolls down about 1.5x viewport size)
Please provide examples of this type of component in use in non-Mozilla web properties

Image examples and general best practices here:
https://www.nngroup.com/articles/back-to-top/

  1. Use a Back to Top button for pages that are longer than 4 screens.
  2. Place a persistent Back to Top button in the lower right side of the page.
  3. Label the button Back to Top.
  4. Have one sticky Back to Top link per page instead of including multiple links in every section of the page.
  5. Keep the button small so it doesn’t cover important page elements.
  6. Make the button stand out visually on the page rather than blend in.
  7. Consider delaying the appearance of a Back to Top option until after users scroll a few pages AND indicate that they want to scroll up
  8. Make the button stationary.
  9. Let users control scrolling.
Is the development of this component a blocking dependency for other work? Please explain if so

Protocol team has come to consensus on need after discussion on longstanding bedrock issue. It is not blocking but would be a good UX improvement on pages such as https://www.mozilla.org/en-US/firefox/privacy/book/

主要言語
SCSS
スター
298
フォーク
83
平均マージ
9日 7時間
マージ済み PR(30日)
7

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mozilla/protocol のほかの issue

mozilla/protocol の issue をすべて見る

似ている issue

Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。