ionic-team / ionic-team/ionic-framework

bug(a11y): ion-input-password-toggle has hardcoded aria-label that cannot be customized

Đang mở
#30,004 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

### Description

The `ion-input-password-toggle` component currently has a hardcoded `aria-label` for the password visibility toggle button. This `aria-label` cannot be customized, which makes it challenging to adapt the component for different languages and accessibility needs.

### Expected Behavior

There should be a way to customize the `aria-label` for the password toggle button in the `ion-input-password-toggle` component, allowing developers to set an accessible and localized label.

https://github.com/ionic-team/ionic-framework/blob/4bffe976d937e21c42649d010ce696b19962f6ef/core/src/components/input-password-toggle/input-password-toggle.tsx#L130C11-L130C37

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

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

Đánh giá

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

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.