New Component Request: Back to Top button
メンテナーはふだん 7 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
まず、issue にリンクされている既存の Neutral ボタンのスタイルと、再利用可能なコンポーネント向けのデザインシステムのパターンを確認します。要件に基づいて Back to Top の動作を定義します。右下への固定配置、スクロール後の遅延表示、レスポンシブな使用、両方の背景上での軽いスタイルです。コンポーネントがこれらの動作を満たし、短いページでも目立ちすぎなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
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
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/
- Use a Back to Top button for pages that are longer than 4 screens.
- Place a persistent Back to Top button in the lower right side of the page.
- Label the button Back to Top.
- Have one sticky Back to Top link per page instead of including multiple links in every section of the page.
- Keep the button small so it doesn’t cover important page elements.
- Make the button stand out visually on the page rather than blend in.
- 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
- Make the button stationary.
- 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mozilla/protocol のほかの issue
-
A11y ♿️
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 7 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 7 日以内に返信
-
Bug :beetle: Size: XS
難易度 2/5 1時間未満 初心者へのやさしさ 65/100
メンテナーはふだん 7 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
メンテナーはふだん 7 日以内に返信
-
Dev ready ⚙️ P1 Size: XS
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
mozilla/protocol#1119 · コメント 2 件 ·
メンテナーはふだん 7 日以内に返信
mozilla/protocol の issue をすべて見る
似ている issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
lingdojo/kana-dojo#31142 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug (unconfirmed) Good first issue 1️⃣ help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
FreshRSS/FreshRSS#9359 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:frontend bug FE hotspot:css mvp P3
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
klasolsson81/jobbliggaren#1894 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
hyprwm/hyprshutdown#36 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hfg-gmuend/openmoji#673 · コメント 1 件 ·