[Bug]: Missing form accessibility attributes, semantic labels, and deprecated event handlers in React views
Maintainer thường phản hồi trong vòng 1 ngà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
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, react
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
The issue names ChatInput.js, LoginForm.js, TwoFactorTotpModal.js, InsertLinkToolBox, and MessageReportWindow in the React views. Start by inspecting the listed form inputs and their existing tests, then check the Storybook views with an accessibility audit. Done means each input has the requested identifying and accessible label attributes, LoginForm uses semantic label associations, and its key handler is updated; the issue author says a fix is already prepared, so confirm the work is available before starting.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description:
Several input fields across the @embeddedchat/react views lack proper accessibility attributes (id, name, aria-label), semantic <label htmlFor="..."> associations, and use deprecated event handlers:
- ChatInput (
ChatInput.js): The file input (<input type="file" ...>) lacksid,name, and an accessible label (aria-label), triggering accessibility violations in browser audits. - LoginForm (
LoginForm.js): Field labels are rendered as plain<div>tags rather than semantic<label htmlFor="...">elements, preventing screen readers from associating labels with input fields. It also relies on the deprecatedonKeyPressevent handler. - TwoFactorTotpModal (
TwoFactorTotpModal.js): TOTP input field lacksname,id,autoComplete="one-time-code", and accessible labeling. - InsertLinkToolBox & MessageReportWindow: Inputs lack
id,name, and descriptivearia-labelattributes.
Steps to reproduce:
- Clone the repository and install dependencies with
yarn. - Start Storybook:
cd packages/react && yarn storybook. - Open
http://localhost:6006in Chrome / Chromium. - Open Chrome DevTools (
F12) and inspect the Issues tab.
Expected behavior:
All interactive form inputs should comply with WCAG 2.1 AA standards:
- Each input should have a unique
id,name, and accessible label (aria-labelor<label htmlFor="...">). - Input event handlers should use modern standards (
onKeyDowninstead of deprecatedonKeyPress).
Actual behavior:
Browser and accessibility audits flag the form fields with:
A form field element has neither an id nor a name attribute. This might stop the browser from correctly autofilling the form.
I have tracked down these inputs across the views and prepared a fully tested fix with 0 lint errors. Could you please assign this issue to me so I can raise a PR?
- Ngôn ngữ chính
- JavaScript
- Star
- 171
- Fork
- 421
- Merge trung bình
- 3 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của RocketChat/EmbeddedChat
-
Bug: username fallback in updateUserUsername never runs since the ddp-client migrationCó thể đã có người làm @MuhammadFaizan-prog đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
RocketChat/EmbeddedChat#1489 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)Có thể đã có người làm @yashsarvaiya45 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
RocketChat/EmbeddedChat#1486 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug(api): _doConnect swallows connection/auth errors and marks failed sessions as authenticatedCó thể đã có người làm @ashwanisingh011 đã nhận 1 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
RocketChat/EmbeddedChat#1484 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: White screen crash (`Cannot read properties of undefined (reading 'members')`) when rendering UserMention outside MarkupInteractionContextCó thể đã có người làm @swarnendusahu10-dotcom đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
RocketChat/EmbeddedChat#1482 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed outCó thể đã có người làm @swarnendusahu10-dotcom đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
RocketChat/EmbeddedChat#1480 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của RocketChat/EmbeddedChat
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Life-Framework/Life-Framework#7017 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
e/DevOps enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Accenture/sfmc-devtools#2795 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent/guide documentation help wanted stage/010-actionable
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kubestellar/console-kb#4003 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
FilOzone/synapse-sdk#1201 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày