[Bug]: Missing form accessibility attributes, semantic labels, and deprecated event handlers in React views
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, react
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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?
- 主要语言
- JavaScript
- 星标
- 171
- 派生
- 421
- 平均合并
- 3 天 6 小时
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RocketChat/EmbeddedChat 的其他 Issue
-
Bug: username fallback in updateUserUsername never runs since the ddp-client migration可能已有人在做 @MuhammadFaizan-prog 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
RocketChat/EmbeddedChat#1489 ·
维护者通常 1 天内回复
-
[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)可能已有人在做 @yashsarvaiya45 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 79/100
RocketChat/EmbeddedChat#1486 ·
维护者通常 1 天内回复
-
bug(api): _doConnect swallows connection/auth errors and marks failed sessions as authenticated可能已有人在做 @ashwanisingh011 于 1 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 76/100
RocketChat/EmbeddedChat#1484 ·
维护者通常 1 天内回复
-
Bug: White screen crash (`Cannot read properties of undefined (reading 'members')`) when rendering UserMention outside MarkupInteractionContext可能已有人在做 @swarnendusahu10-dotcom 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
RocketChat/EmbeddedChat#1482 ·
维护者通常 1 天内回复
-
Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed out可能已有人在做 @swarnendusahu10-dotcom 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
RocketChat/EmbeddedChat#1480 · 1 条评论 ·
维护者通常 1 天内回复
查看 RocketChat/EmbeddedChat 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
Life-Framework/Life-Framework#7017 ·
维护者通常 1 天内回复
-
e/DevOps enhancement
难度 2/5 1-3 小时 新手友好度 86/100
Accenture/sfmc-devtools#2795 ·
维护者通常 1 天内回复
-
agent/guide documentation help wanted stage/010-actionable
难度 2/5 1-3 小时 新手友好度 82/100
kubestellar/console-kb#4003 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 78/100
FilOzone/synapse-sdk#1201 · 1 条评论 ·
维护者通常 1 天内回复