"re-check CI" is a span, and its busy state is colour-only

Chiusa Adatta ai principianti
#158 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #201 di @yff124 — chiusa senza merge

Valutazione

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

Direzione di ricerca

In website/src/ui.jsx, cerca act("ci") nella riga di stato della PR; poi leggi il componente vicino e i casi correlati in website/test/clickableContent.test.mjs. Aggiorna il controllo e aggiungi un test che verifichi che sia un pulsante. Il lavoro è completo quando è disabilitato mentre è occupato, mantiene l’aspetto attuale e mostra «Checking CI…»; esegui cd website && npm test.

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

Descrizione

accessibility good first issue

In the PR status line, "re-check CI" is <Box component="span" onClick={() => !busy && act("ci")}>. It cannot be focused, and while it is busy the only hint is a colour change.

Where: website/src/ui.jsx. Search for act("ci").

Done when it is a <button type="button"> (or Link component="button") with disabled={!!busy}, styled to look the same. While busy, the label reads "Checking CI…".

Test: add a case to website/test/clickableContent.test.mjs (or a new *.test.mjs beside it) asserting the element is now a button.


Getting started: pip install -e ".[dev]", then python -m pytest -q (offline). UI work: cd website && npm ci && npm test (Node 22). 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.