Tooltip: Not accessible because aria-describedby is not set.

Đang mở
#8,508 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, typescript
Lĩnh vực
accessibility, frontend

Hướng nghiên cứu

Bắt đầu với reproducer App.tsx và so sánh hành vi của Tooltip standalone và tích hợp được mô tả trong issue. Xác minh cách target được xử lý khi tooltip trở nên hiển thị; hoàn tất khi target nhận được tooltip id được tạo thông qua aria-describedby trong cả hai trường hợp.

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

Mô tả

Status: Needs Triage
Describe the bug

The tooltip documentation states:

Tooltip component uses tooltip role and when it becomes visible the generated id of the tooltip is defined as the aria-describedby of the target.

This does not actually happen.

Reproducer

https://stackblitz.com/edit/vitejs-vite-wjimyrsw?file=src%2FApp.tsx

System Information
PrimeReact 10.9.7, you can see it on the Primereact demo site: https://primereact.org/tooltip/#delay
Steps to reproduce the behavior
  1. Go to the stackblitz.
  2. Use the inspector to select either button or the input.
  3. Hover over the element, showing the tooltip.
  4. Note that aria-describedby is not set on either the button or the input.

This happens both with the standalone and the integrated tooltip.

Expected behavior

Expected aria-describedby of the target to be set.

Ngôn ngữ chính
CSS
Star
8.3k
Fork
1.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 primefaces/primereact

Tất cả issue của primefaces/primereact

Issue tương tự

Thêm issue về Accessibility

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.