[BUG]: Table sort headers can't be used from the keyboard and don't announce sort order

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

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

@Simran-Sobhani がすでに取り組んでいます。

2026年10月28日 から。

  • #429 @Simran-Sobhani による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, react

調査の方向性

src/components/UI.jsx の SortTh を読み、Repositories ページと Contributors ページでの使われ方を確認してください。提案されているキーボード操作とソート状態の動作を追加し、src/components/UI.test.jsx で Testing Library を使ってテストしてください。ソート見出しをキーボードで操作でき、アクティブなソート順をスクリーンリーダーに伝えられれば完了です。

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

説明

bug enhancement
Bug Description

The sortable column headers on the Repositories and Contributors pages can only be used with a mouse.

SortTh in src/components/UI.jsx (lines 119-138) renders a plain <th> with an onClick handler. A <th> is not focusable, so Tab skips every sort header and there is no way to change the sort order from the keyboard. The header also has no aria-sort, so screen readers do not announce which column is sorted or in which direction. The only hint is the chevron icon and the accent color.

This affects 5 headers on /contributors (ContributorsPage.jsx lines 321-325) and every column on /repositories (RepositoriesPage.jsx line 253). Open PR #276 adds 4 more on a new Maintainers page through the same component.

Impact

Low - Minor inconvenience

Proposed Solution

A small change in SortTh only, so both pages get it:

  • Put a <button type="button"> inside the <th> and move the onClick to it, so the header is focusable and Enter/Space work.
  • Set aria-sort="ascending" / "descending" on the active <th> and "none" on the others.
  • Mark the chevron icon aria-hidden="true".
  • Add src/components/UI.test.jsx with Testing Library: the header is a button, clicking it calls onSort with the key, and aria-sort follows sortConfig.
Steps to Reproduce
  1. Explore any org, for example AOSSIE-Org, and open the Repositories page.
  2. Press Tab repeatedly from the search box.
  3. Focus never lands on a column header, and Enter or Space can't change the sort.
  4. With a screen reader on, move to a header: it is read as plain text with no sorted state.
Logs and Screenshots

No response

Environment Details
  • Branch: main (b396d1b)
  • Found by reading the code; any browser

I'd like to work on this if it's okay with the maintainers.

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
主要言語
JavaScript
スター
48
フォーク
163
平均マージ
5日 2時間
マージ済み PR(30日)
31

環境構築

はじめの一歩

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

AOSSIE-Org/OrgExplorer のほかの issue

AOSSIE-Org/OrgExplorer の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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