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

Aperta
#1,441 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Siddh2024 ci sta già lavorando.

Dal 18/11/2026.

  • #1442 di @Siddh2024 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, react

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
JavaScript
Stelle
171
Fork
421
Merge medio
3g 6h
PR unite (30g)
4

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di RocketChat/EmbeddedChat

Tutte le issue di RocketChat/EmbeddedChat

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.