Switch is neither perceivable nor operable by assistive technology
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- À l'abandon
- Stack technique
- ruby
- Domaine
- accessibility
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
- Where:
switch.rb:role: "switch"on the label with noaria-checked; the checkbox input carriesclass: "hidden peer"(display: none). Snapshotsswitch/*. - Effect: the switch role requires
aria-checked; adisplay: noneinput leaves the accessibility tree and the tab order, so keyboard users cannot toggle it and the label'sfocus-visible:classes never apply. - Fix: render
aria-checkedand keep it in sync from the controller;sr-onlyinstead ofhiddenso the input stays focusable; re-recordswitch/*.
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.
- Langage dominant
- Ruby
- Étoiles
- 1k
- Forks
- 67
- Merge moyen
- 2 j 19 h
- PR mergées (30 j)
- 18
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ruby-ui/ruby_ui
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 55/100
-
bug
Difficulté 1/5 1-3 heures Accessibilité débutants 35/100
Toutes les issues de ruby-ui/ruby_ui
Issues similaires
-
user-reported
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
TheOdinProject/curriculum#31408 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
CI: json 3.0.2 removed `quirks_mode`, breaking ActiveSupport's JSON encoder on every test job Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
bensheldon/good_job#1816 · 5 commentaires ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
notch8/utk_knapsack#148 ·