[Wizard.Step] accessibilityInfo prop is declared but not used in accessibilityLabel

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

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

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
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react-native, typescript
Lĩnh vực
accessibility, mobile

Hướng nghiên cứu

Bắt đầu từ component Wizard.Step, interface TypeScript WizardStepProps của nó và phần tạo accessibilityLabel hiện đang đọc StatesConfig[state]. Theo dõi cách prop accessibilityInfo được truyền vào và sử dụng; hoàn thành khi một giá trị riêng cho từng bước có thể ảnh hưởng đến nhãn của trình đọc màn hình mà không làm mất hành vi dựa trên trạng thái.

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

Mô tả

bug wontfix

The Wizard.Step component declares an accessibilityInfo?: string prop in its TypeScript interface (WizardStepProps), suggesting that developers can provide custom accessibility text for screen readers.

However, this prop is never actually used when generating the accessibilityLabel. Instead, the component only reads accessibilityInfo from a global StatesConfig[state] object (e.g., StatesConfig.enabled.accessibilityInfo), making it impossible to customize accessibility text per step.

This leads to:

  • Misleading documentation/type definitions
  • Inability to provide meaningful, step-specific screen reader announcements
  • Poor accessibility compliance (WCAG)
    platform:Android
    react-native : 0.77.1
    react-native-ui-lib : 7.43.0
Ngôn ngữ chính
TypeScript
Star
7.2k
Fork
749
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
4

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 wix/react-native-ui-lib

Tất cả issue của wix/react-native-ui-lib

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.