patternfly / patternfly/patternfly-react

[Popover] - allow its sparing usage for interactive content

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

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

Demo Stale
Ngôn ngữ chính
TypeScript
Star
862
Fork
392
Merge trung bình
4 ngày 8 giờ
Pull request đã merge (30 ngày)
9

Mô tả

Is this a new component or an extension of an existing one?

And extension/adjustment of Popover

Describe the feature

Allow interactive content for using it in scenarios where other components such as Modal, Menu, or Dropdown, don’t quite fit the use case.

As an example, see the screenshots below of rough prototypes for an interface that allows users quick access to available Wi-Fi networks and keyboard layout from a top toolbar.

One concern I have is that the Popover component internally uses the aria-describedby attribute, which I believe makes the interactive content inaccessible. From my limited understanding of accessibility, and after reviewing MDN's documentation, it seems that using aria-details might help.

The aria-describedby property is appropriate when the associated content contains plain text. If the content is extensive, contains useful semantics, or has a complex structure requiring user navigation, use aria-details instead. aria-details allows assistive technology users to visit the associated structured content and provides additional navigation commands, making it easier to understand the structure, or experience the information in smaller pieces.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby

Are there visuals for this feature? If applicable, please include examples for each state and for varying widths

See these rough prototypes

Available Wi-Fi networks Localization options
Available Wi-Fi networks in a Popover prototype Localization options in a Popover prototype

Any other information?

Originally posted as a discussion in #11745, but later realized that a feature request issue might be a better place for it.

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.

Hướng nghiên cứu

Bắt đầu tại packages/react-core/src/components/Popover/Popover.tsx, đặc biệt là việc sử dụng aria-describedby quanh dòng 456, và xem lại tài liệu về Popover cùng hướng dẫn ARIA được liên kết. Xác định các yêu cầu về khả năng truy cập đối với nội dung tương tác và định nghĩa việc hoàn thành sao cho Popover hỗ trợ các trường hợp sử dụng được yêu cầu mà không khiến nội dung của nó trở nên không thể truy cập.

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

Đánh giá

Công nghệ
react, typescript
Lĩnh vực
accessibility, frontend
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.