[Bug] ui5-input: shadow DOM icon wrapper divs appear as "Blank" in screen reader browse mode
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- html, typescript
调研方向
找到 ui5-input 的 shadow 模板,并定位 .ui5-input-icon-root 和 .ui5-input-clear-icon-wrapper。阅读这些包装元素如何包含交互元素,然后检查该组件的无障碍测试,或添加一项有针对性的回归检查。当屏幕阅读器跳过这两个包装元素,同时内部控件仍可访问时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Bug Description
The ui5-input shadow DOM renders two layout wrapper <div> elements that are encountered
by screen readers in browse/reading mode and announced as "Blank":
.ui5-input-icon-root- container div for the icon slot.ui5-input-clear-icon-wrapper- container div for the clear (X) button
These wrappers are decorative layout containers - the actual interactive elements
(icon button, clear button) live inside them and handle their own accessibility. The
wrappers themselves carry no accessible name or role, so AT announces them as "Blank"
when the virtual cursor lands on them.
The fix belongs in the shadow template: both wrapper divs should have aria-hidden="true"
so AT skips them and focuses only on the inner interactive elements.
Affected Component
ui5-input
Expected Behaviour
The wrapper divs are transparent to AT. Screen readers navigate directly to the inner
interactive elements (which should carry their own accessible names).
The shadow template fix:
<div class="ui5-input-icon-root" aria-hidden="true">...</div>
<div class="ui5-input-clear-icon-wrapper" aria-hidden="true">...</div>
Actual behavior
NVDA and JAWS screen readers announces "Blank" for both .ui5-input-icon-root and .ui5-input-clear-icon-wrapper
in browse mode.
Isolated Example
No response
Steps to Reproduce
- Create a
ui5-inputwithshowClearIconand type a value (so the clear wrapper appears) - Open with NVDA in browse mode
- Use Arrow keys to navigate through the input area
- Screen reader announces "Blank" when landing on the icon wrapper divs
Log Output, Stack Trace or Screenshots
No response
Priority
None
UI5 Web Components Version
2.25.4
Browser
Chrome, Edge
Operating System
Windows
Additional Context
No response
Organization
No response
Declaration
- I’m not disclosing any internal or sensitive information.
- 主要语言
- TypeScript
- 星标
- 1.8k
- 派生
- 289
- 平均合并
- 4 天 5 小时
- 30 天内合并 PR
- 33
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
UI5/webcomponents 的其他 Issue
-
[ui5-li | ui5-list]: inner RadioButton announces 'Item Selection.' instead of option label in single-select mode (WCAG 4.1.2)可能已有人在做 @PetyaMarkovaBogdanova 于 19 天前认领。 未关闭ACC bug Medium Prio TOPIC P
难度 2/5 1-3 小时 新手友好度 78/100
UI5/webcomponents#14273 · 3 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
[SF][A11y][ui5-select] Conflicting ARIA: role="combobox" rendered with aria-roledescription="Listbox" (confuses screen-reader users)可能重新可做 @PetyaMarkovaBogdanova 于 33 天前认领,目前没有进行中的 PR。 未关闭bug Medium Prio TOPIC P
难度 2/5 1-3 小时 新手友好度 67/100
UI5/webcomponents#14212 · 3 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
(ui5-search): Loading state sample is broken可能已有人在做 @ndeshev 于 33 天前认领。 未关闭bug Low Prio released TOPIC RL
难度 2/5 1-3 小时 新手友好度 68/100
UI5/webcomponents#14210 · 2 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
For IllustratedMessage title there should be support for setting Header level可能重新可做 @plamenivanov91 于 33 天前认领,目前没有进行中的 PR。 未关闭enhancement Medium Prio TOPIC P
难度 2/5 1-3 小时 新手友好度 62/100
UI5/webcomponents#14162 · 2 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
bug Low Prio TOPIC RL
难度 2/5 1-3 小时 新手友好度 65/100
UI5/webcomponents#14143 · 1 条评论 ·
维护者通常 2 天内回复
查看 UI5/webcomponents 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
platform:windows provider:antigravity-cli providers setup triaged wontfix
难度 2/5 1-3 小时 新手友好度 78/100
can1357/oh-my-pi#21349 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 72/100
ohcnetwork/care_fe#17474 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 90/100