Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Switch is neither perceivable nor operable by assistive technology

Aperta
#550 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
accessibility

Direzione di ricerca

Start with switch.rb and the controller that drives the switch state on the 2.0 line. Replace the hidden input approach and add the state reflected by aria-checked, then re-record and review the switch/* snapshots as the completion check.

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

Descrizione

bug
  • Where: switch.rb: role: "switch" on the label with no aria-checked; the checkbox input carries class: "hidden peer" (display: none). Snapshots switch/*.
  • Effect: the switch role requires aria-checked; a display: none input leaves the accessibility tree and the tab order, so keyboard users cannot toggle it and the label's focus-visible: classes never apply.
  • Fix: render aria-checked and keep it in sync from the controller; sr-only instead of hidden so the input stays focusable; re-record switch/*.

Surfaced by the strict lane of the golden HTML suite (PR #548), which pins what 1.6 renders today — this defect included. Per maintainer decision (2026-09-19) main stays as is: this is addressed on the 2.0 line, and the golden snapshots that pin it are re-recorded there with the diff reviewed.

Source: design/v2/follow-up-issues.md.

Lingua principale
Ruby
Stelle
1k
Fork
67
Merge medio
2g 19h
PR unite (30g)
18

Guida per i contributori

Apri la guida per i contributori

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 ruby-ui/ruby_ui

Tutte le issue di ruby-ui/ruby_ui

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.