[Bug]: Missing form accessibility attributes, semantic labels, and deprecated event handlers in React views

Đang mở
#1,441 0 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

@Siddh2024 đang làm issue này rồi.

Từ ngày 18/11/2026.

  • #1442 của @Siddh2024 — đang mở

Đá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ả

bug
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" ...>) lacks id, 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 deprecated onKeyPress event handler.
  • TwoFactorTotpModal (TwoFactorTotpModal.js): TOTP input field lacks name, id, autoComplete="one-time-code", and accessible labeling.
  • InsertLinkToolBox & MessageReportWindow: Inputs lack id, name, and descriptive aria-label attributes.
Steps to reproduce:
  1. Clone the repository and install dependencies with yarn.
  2. Start Storybook: cd packages/react && yarn storybook.
  3. Open http://localhost:6006 in Chrome / Chromium.
  4. 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-label or <label htmlFor="...">).
  • Input event handlers should use modern standards (onKeyDown instead of deprecated onKeyPress).
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.

Screenshot 2026-11-18 215642

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

  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 RocketChat/EmbeddedChat

Tất cả issue của RocketChat/EmbeddedChat

Issue tương tự

Thêm issue về JavaScript

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.