ReqoreModal: the role="dialog" element has no accessible name (label and aria-label land on the inner panel)

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

Maintainer thường phản hồi trong vòng 1 ngày

@Foxhoundn đang làm issue này rồi.

Từ ngày 6/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

What the landing page needs

Every dialog on the Qorus marketing site is a ReqoreModal with a label (and an aria-label). Screen readers announce them as an unnamed "dialog": the element that carries role="dialog" and aria-modal="true" (the Drawer's StyledWrapper) has no accessible name. The label renders in the inner ReqorePanel's header, and aria-label / aria-labelledby passed to the modal go to that inner panel (<ReqorePanel {...rest} …>), not to the dialog element. Testing Library's getByRole('dialog', { name }) cannot find any of them either (0.77.5; same on develop).

What would fix it

Name the role="dialog" element: aria-labelledby pointing at the panel's label element when there is a label, and pass a consumer's aria-label / aria-labelledby to the wrapper rather than to the panel. A story play: getByRole('dialog', { name: 'Modal title' }).

Meanwhile

Nothing on the site: there is no way to name the dialog element from outside without reaching into Reqore's DOM. The site's stories find the dialog by its role and check the title text inside it.

Ngôn ngữ chính
TypeScript
Star
4
Fork
0
Merge trung bình
16 giờ 28 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

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 qoretechnologies/reqore

Tất cả issue của qoretechnologies/reqore

Issue tương tự

Thêm issue về TypeScript

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.