当角色=“ tab” ..... Accessibility时,Windows讲述人未宣布展开/折叠状态

问题描述

使用适当的Javascript单击按钮以切换按钮的aria-expanded属性

在这种情况下,每次点击时,讲述人/边缘将宣布被封和折叠的属性。请注意,缺少role =“ tab”。

<div role="tablist" aria-label="Entertainment">
    <button aria-expanded="false" tabindex="0">
      Nils Frahm
    </button>
    <button aria-expanded="false" tabindex="1">
      Agnes Obel
    </button>
  </div>

我需要同时使用role =“ tab”和aria扩展属性。此功能在Chrome / NVDA上正常运行,但在“讲述人” /“边缘”组合下,仅宣布了展开/折叠的初始状态。在随后的单击中,讲述人将保持沉

<div role="tablist" aria-label="Entertainment">
    <button role="tab"aria-expanded="false" tabindex="0">
      Nils Frahm
    </button>
    <button role="tab" aria-expanded="false" tabindex="1">
      Agnes Obel
    </button>
  </div>

我尝试在网络上查找信息,但是那里没有太多信息。因此,试一试。任何帮助表示赞赏。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)