[英]NVDA isn't reading the content that is being given focus
Been testing an accessibility modal window, it works as expected with JAWS 13 on IE8. 在测试可访问性模态窗口时,它可以与IE8上的JAWS 13一起正常工作。 However when I use NDVA and test on IE8 or Firefox, the focused content is not read.
但是,当我使用NDVA并在IE8或Firefox上进行测试时,不会读取重点内容。
When the modal is displayed it has aria-hidden="false"
while the rest of the content on the page has aria-hidden="true"
. 显示模式时,它具有
aria-hidden="false"
而页面上其余内容具有aria-hidden="true"
。
This code works ("read at start" is read first on focus): 这段代码有效(首先阅读“开始阅读”):
<div id="modalContent" aria-hidden="false">
<h2>Some Text</h2>
<div class="offScreen" id="first-focus">read at start</div>
<p> asdf as df asdf asd fasdf</p>
</div>
But this code does not ("read at start" is not read when given focus): 但是,此代码不会(给定焦点时不会读取“开始时读取”):
<div id="modalContent" aria-hidden="false">
<div class="offScreen" id="first-focus">read at start</div>
<h2>Some Text</h2>
<p> asdf as df asdf asd fasdf</p>
</div>
Keeping the working code and putting something that isn't really read, like a "." 保留工作代码并放入未真正读取的内容,例如“。”。 and changing the h2 to a span provides a workable solution.
并将h2更改为跨度可提供可行的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.