ComboboxInputTrigger puts the combobox states on a role-less div

Đang mở
#551 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
ruby
Lĩnh vực
accessibility, frontend

Hướng nghiên cứu

Start on the 2.0 line with combobox_input_trigger.rb and compare the current markup with snapshot combobox/input_trigger. Run the golden HTML suite or inspect the combobox/* snapshots, then re-record them after the input owns the combobox states and review the resulting diff.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
  • Where: combobox_input_trigger.rb: aria-expanded and aria-haspopup="listbox" on the wrapper div; the <input> has no role="combobox", aria-controls or aria-activedescendant. Snapshot combobox/input_trigger.
  • Effect: ARIA 1.2 puts those states on the element with the combobox role; on a role-less div they are not conveyed, and the listbox relationship is never announced.
  • Fix: move role: "combobox", aria-haspopup, aria-expanded and aria-controls onto the input; re-record combobox/*.

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.

Ngôn ngữ chính
Ruby
Star
1k
Fork
67
Merge trung bình
2 ngày 19 giờ
Pull request đã merge (30 ngày)
18

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ruby-ui/ruby_ui

Tất cả issue của ruby-ui/ruby_ui

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.