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

Ouverte
#1,441 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@Siddh2024 y travaille déjà.

Depuis le 18/11/2026.

  • #1442 par @Siddh2024 — ouverte

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
javascript, react

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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?

Langage dominant
JavaScript
Étoiles
171
Forks
421
Merge moyen
3 j 6 h
PR mergées (30 j)
4

Préparer son environnement

  • Aucun Dockerfile ni fichier Docker Compose
  • Propose un modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de RocketChat/EmbeddedChat

Toutes les issues de RocketChat/EmbeddedChat

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.