[BUG]: Table sort headers can't be used from the keyboard and don't announce sort order
I maintainer di solito rispondono entro 4 giorni
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, react
- Ambito
- accessibility, frontend, testing
Direzione di ricerca
Leggi SortTh in src/components/UI.jsx e controllane l’uso nelle pagine Repositories e Contributors. Aggiungi il comportamento proposto per la tastiera e lo stato di ordinamento, poi coprilo in src/components/UI.test.jsx con Testing Library. Il lavoro è completato quando le intestazioni di ordinamento possono essere usate da tastiera ed espongono l’ordine di ordinamento attivo agli screen reader.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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 theonClickto 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.jsxwith Testing Library: the header is a button, clicking it callsonSortwith the key, andaria-sortfollowssortConfig.
Steps to Reproduce
- Explore any org, for example
AOSSIE-Org, and open the Repositories page. - Press Tab repeatedly from the search box.
- Focus never lands on a column header, and Enter or Space can't change the sort.
- 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
- Lingua principale
- JavaScript
- Stelle
- 48
- Fork
- 163
- Merge medio
- 5g 23m
- PR unite (30g)
- 32
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/OrgExplorer
-
[BUG]: `fetchWithCache` crashes with `SyntaxError: Unexpected end of JSON input` when encountering empty repositories (HTTP 204 No Content)Forse già presa @Devnil434 l’ha presa 2 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/OrgExplorer#433 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
[BUG]: Connect PAT modal saves invalid GitHub tokens without validationForse già presa @Prince-ES l’ha presa 5 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
AOSSIE-Org/OrgExplorer#416 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
[BUG]: Avoid triggering Release Drafter for closed, unmerged pull requestsForse già presa @Praveena2809 l’ha presa 3 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
AOSSIE-Org/OrgExplorer#414 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
[BUG]: Overview "Language Distribution" percentages are relative to the top-7 languages, not all reposForse già presa @Rohit270406 l’ha presa 8 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/OrgExplorer#402 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
[BUG]: Overview wrongly lists a successfully-loaded org as "could not be loaded" (case / duplicate)Forse già presa @Rajvardhan-Singh-Rathore l’ha presa 3 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
AOSSIE-Org/OrgExplorer#400 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di AOSSIE-Org/OrgExplorer
Issue simili
-
JS/TS: JSX props compile errors should link to a doc page explaining the static-list requirementApertaarea: js-runtime enhancement exists-upstream interop priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
shayanhabibi/fickl#307 ·
I maintainer di solito rispondono entro 1 giorno
-
editor good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
webarkit/webarkit-studio#16 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
superdesigndev/treg#1324 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
entur/iteru-3dbus#48 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
pigeon189/zcode-fox-widget#17 · 1 commento ·