[Bug]: Missing form accessibility attributes, semantic labels, and deprecated event handlers in React views
Les mainteneurs répondent en général sous 1 jour
É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
- Domaine
- accessibility, frontend
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
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?
- 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
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de RocketChat/EmbeddedChat
-
Bug: username fallback in updateUserUsername never runs since the ddp-client migrationPeut-être pris @MuhammadFaizan-prog l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
RocketChat/EmbeddedChat#1489 ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)Peut-être pris @yashsarvaiya45 l’a pris aujourd’hui. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
RocketChat/EmbeddedChat#1486 ·
Les mainteneurs répondent en général sous 1 jour
-
bug(api): _doConnect swallows connection/auth errors and marks failed sessions as authenticatedPeut-être pris @ashwanisingh011 l’a pris il y a 1 jour. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
RocketChat/EmbeddedChat#1484 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug: White screen crash (`Cannot read properties of undefined (reading 'members')`) when rendering UserMention outside MarkupInteractionContextPeut-être pris @swarnendusahu10-dotcom l’a pris il y a 2 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
RocketChat/EmbeddedChat#1482 ·
Les mainteneurs répondent en général sous 1 jour
-
Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed outPeut-être pris @swarnendusahu10-dotcom l’a pris il y a 3 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
RocketChat/EmbeddedChat#1480 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de RocketChat/EmbeddedChat
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Life-Framework/Life-Framework#7017 ·
Les mainteneurs répondent en général sous 1 jour
-
e/DevOps enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
Accenture/sfmc-devtools#2795 ·
Les mainteneurs répondent en général sous 1 jour
-
agent/guide documentation help wanted stage/010-actionable
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
kubestellar/console-kb#4003 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
FilOzone/synapse-sdk#1201 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour