Hidden star banner and back to top buttons are in the keyboard tab order on every page
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 86/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
src/components/StarBanner.astroとsrc/components/BackToTop.astroの非表示時と表示時のスタイルを読み、src/components/Header.astroの閉じたモバイルメニューと比較してください。各コントロールが表示される前後、または非表示になる前後で、キーボードのタブ順序を確認し、フェードが引き続き機能することを確かめてください。非表示のコントロールにフォーカスできず、表示中のバナーのコントロールが引き続き機能し、受け入れチェックに合格すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
On any page of https://og.codercops.com, Tab past the last footer link ("CODERCOPS"). The next three stops are "Star on GitHub", "Maybe later" and "Close" in the star banner, which isn't on screen, so the focus seems to vanish. On a short page like /preview, the fourth stop is the Back to top button, which is also invisible until you've scrolled 500px. Only then does focus reach the Feedback button.
The banner stays in the tab order even after you've dismissed it for good. And while it's hidden it has aria-hidden="true", so screen reader users can land on controls inside a region that's supposed to be hidden.
Both hide with opacity: 0 and pointer-events: none, which doesn't take anything out of the tab order:
src/components/StarBanner.astro:aria-hidden="true"on line 2, the hidden style on lines 94 to 97, and the visible class on lines 100 to 104src/components/BackToTop.astro: the hidden style on lines 48 to 51, and the visible class on lines 54 to 58
The mobile menu already gets this right: it uses visibility: hidden while it's closed (src/components/Header.astro, lines 277 to 291).
What to do
- Make both unfocusable while they're hidden. The simplest way is CSS: add
visibility: hiddento the hidden state andvisibility: visibleto the visible class, and addvisibilityto thetransitionso the fade out still plays. Toggling theinertattribute together with the class works too. - Keep the banner's
aria-hiddenmatching what's on screen, as it does now. - The back to top script is also part of #161 (scripts that stop working after you follow a link inside the site), so a change that only touches CSS is the easiest to merge alongside it.
Where to look
src/components/StarBanner.astro: the markup (lines 2 to 20),hideBanner(lines 47 to 53), where it's shown (lines 57 to 62) and the styles (lines 83 to 104)src/components/BackToTop.astro:toggle(lines 14 to 20) and the styles (lines 32 to 58)src/components/Header.astro: the closed mobile menu (lines 277 to 291), for comparison
Acceptance criteria
- While the banner is hidden (before it appears, after "Maybe later", or after dismissing it for good), Tab goes from the last footer link to the next control you can see
- Back to top is in the tab order only while it's visible
- When the banner is showing, its three controls can be reached with Tab and still work
- The fade in and out look the same as before
-
npm run check,npm run testandnpm run buildpass - The PR says how you checked the tab order (with the keyboard, or the browser's accessibility tree)
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #169 in the description.
- 主要言語
- TypeScript
- スター
- 8
- フォーク
- 4
- 平均マージ
- 6時間 9分
- マージ済み PR(30日)
- 66
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codercops/ogcops のほかの issue
-
accessibility bug good first issue hacktoberfest ui
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue hacktoberfest ui
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue hacktoberfest
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
codercops/ogcops#167 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
An empty `imageUrl=`, `logoUrl=` or `template=` returns an error instead of the default対応中かも @Saifjafri212213 が 1 日前に担当しました。 オープンbug good first issue hacktoberfest
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
codercops/ogcops#166 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue hacktoberfest
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
codercops/ogcops#164 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
codercops/ogcops の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
logto-io/logto#9837 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
lingdojo/kana-dojo#32964 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
Documentation status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mastra-ai/mastra#28194 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
priority-low refactor-3
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 3 日以内に返信