Repository path field in RepoPicker has no accessible name

Chiusa Adatta ai principianti
#144 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Una pull request collegata è già stata integrata.

  • #174 di @singhisha40 — chiusa senza merge
  • #176 di @Omaima-Ameen — integrata

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
92/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, react

Direzione di ricerca

In website/src/RepoPicker.jsx, aggiungi l’aria-label specificato a inputProps del campo del percorso del repository, seguendo il modello in AboutYou.jsx. Aggiungi website/test/repoPickerAccessibility.test.mjs basandoti su website/test/aboutYouAccessibility.test.mjs ed eseguilo con il comando di test del sito web. Il lavoro è completato quando ogni TextField in RepoPicker.jsx ha un aria-label.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

accessibility good first issue

The repository path field in RepoPicker has only a placeholder (an example path), and a placeholder is not a label. A screen reader has no name to read for the field.

Where: website/src/RepoPicker.jsx:

<TextField size="small" fullWidth autoFocus value={path} placeholder="C:\\Users\\you\\Documents\\portal"
  onChange={(e) => setPath(e.target.value)}
  inputProps={{ style: { fontSize: 11.5, fontFamily: "ui-monospace, monospace" } }} />

Done when inputProps includes "aria-label": "Folder where this repository is checked out". That is the same pattern AboutYou.jsx follows.

Test: copy website/test/aboutYouAccessibility.test.mjs to repoPickerAccessibility.test.mjs, point it at RepoPicker.jsx, and assert that every <TextField> has an aria-label.


Getting started: pip install -e ".[dev]", then python -m pytest -q (offline). UI work: cd website && npm ci && npm test. See CONTRIBUTING.md. One small PR with the change (and its test, where there is one) is perfect.

Lingua principale
Python
Stelle
116
Fork
22
Merge medio
4h 23m
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ldbumble/taskuary

Tutte le issue di ldbumble/taskuary

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.