The presenter's bar pages with the same chevrons as the viewer's bar

Aperta Adatta ai principianti
#18 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia confrontando i pulsanti precedente e successivo in src/deck-engine/DeckChromeViewer.tsx, che già usano ChevronLeftRegular e ChevronRightRegular con aria-label, con le frecce di testo in src/deck-engine/DeckChromePresenter.tsx. Sostituisci le frecce del presenter con le stesse icone, a una dimensione adatta a quella barra, e aggiungi gli aria-label corrispondenti senza modificare la paginazione, gli stati disabilitati o il contatore. È completato quando entrambe le barre mostrano i chevron, uno screen reader nomina entrambi i pulsanti del presenter e i test del motore passano.

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

Descrizione

enhancement good first issue

Why

The player's two bars page through a deck with different marks. The viewer's bar (src/deck-engine/DeckChromeViewer.tsx) uses thin chevrons, ChevronLeftRegular and ChevronRightRegular, and its comment explains the choice. The presenter's bar (src/deck-engine/DeckChromePresenter.tsx) uses the text arrows ← and →. Anyone who switches between Viewer and Podium sees the same control drawn two ways, and a host that embeds the engine inherits both.

What changes

  1. The presenter's previous and next buttons use the same chevron icons as the viewer's bar, at the size that suits the presenter bar.
  2. Both buttons get an aria-label ("Previous slide" and "Next slide"), as the viewer's buttons have. With the text arrows gone, the buttons have no other accessible name.
  3. Paging behaviour, disabled states and the counter stay as they are.

Done when

  • Both bars show chevrons for previous and next, at every width.
  • A screen reader names both presenter buttons.
  • The engine's tests pass.

Out of scope

  • Text buttons that pair a word with an arrow, such as "← Back" and "Next →" in the notes window. They follow a different pattern.
  • Any other change to either bar's layout.
Lingua principale
TypeScript
Stelle
1
Fork
0
Merge medio
30m
PR unite (30g)
9

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 johnfrog76/connected-deck

Tutte le issue di johnfrog76/connected-deck

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.