Switch is neither perceivable nor operable by assistive technology
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- ruby
- Domain
- accessibility
Research direction
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.
Written by the indexing model from the issue text.
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.
- Dominant language
- Ruby
- Stars
- 1k
- Forks
- 67
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 18
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby-ui/ruby_ui
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 35/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
notch8/utk_knapsack#148 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
betagouv/acces-cible#722 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
foobara/empty-ruby-project-generator#10 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100