问题描述
我正在开发在悬停卡片时显示描述文本的小部件,为了使其可访问,当标题具有选项卡焦点时,描述文本也会打开,因此我在标题中添加了 tabindex="0",
The issue I am facing is in Internet Explorer and JAWS screen reader,the heading is not read out when the tab focus goes to the heading text.
我尝试添加 aria-label 和 role="document" 仍然面临同样的问题。
也经历了这个 DIV ARIA-LABEl not being read by JAWS ,与将 aria-label 应用于跨度相关的解决方案不起作用,
并且与添加仅屏幕阅读器文本(带有 sr-only 类)相关的点将导致其他屏幕阅读器(如 NVDA 和 Iphone)中的双文本问题。
以下是 DOM 结构的外观:
<div class="card contaienr">
<div class="card">
<div class="content">
<h3 tabindex="0" aria-level="3" role="heading">
<span>
heading Text 1
</span>
</h3>
<div>
<span>
Description text
</span>
</div>
</div>
</div>
<div class="card">
<div class="content">
<h3 tabindex="0" aria-level="3" role="heading">
<span>
heading Text 1
</span>
</h3>
<div>
<span>
Description text
</span>
</div>
</div>
</div>
</div>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)