[Bug] ui5-input: shadow DOM icon wrapper divs appear as "Blank" in screen reader browse mode

未关闭 适合新手
#14,310 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
html, typescript

调研方向

找到 ui5-input 的 shadow 模板,并定位 .ui5-input-icon-root 和 .ui5-input-clear-icon-wrapper。阅读这些包装元素如何包含交互元素,然后检查该组件的无障碍测试,或添加一项有针对性的回归检查。当屏幕阅读器跳过这两个包装元素,同时内部控件仍可访问时,即为完成。

由索引模型根据 Issue 内容生成。

描述

bug Medium Prio TOPIC RL
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
  1. Create a ui5-input with showClearIcon and type a value (so the clear wrapper appears)
  2. Open with NVDA in browse mode
  3. Use Arrow keys to navigate through the input area
  4. 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

UI5/webcomponents 的其他 Issue

查看 UI5/webcomponents 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。