Bry*_*son 2 wai-aria jaws-screen-reader
我是一名开发人员,致力于使应用程序更易于访问,并且对 JAWS 非常陌生。
我读过的所有内容都aria-describedby让我相信,将其添加到fieldset包含描述的元素的 ID 中将导致当用户访问字段集(参见MDN)
但是当我测试它时,这不会发生。我已经检查过ID是正确的。
我是否误解了如何aria-describedby工作?我需要在 JAWS 中启用某个设置才能正确读取 aria 属性吗?
这可能会有所帮助:实际支持:aria-label、aria-labelledby 和 aria-scribedby
在您描述的情况下,您可以通过使用aria-labelledby多个id引用来实现与您想要的相同的结果,即 JAWS 在导航到时宣布图例和说明文本fieldset。
<fieldset aria-labelledby="legend-03 instruction">
<legend id="legend-03">
Which version of HTML do you use?
</legend>
<p id="instruction"> some important text</p>
<input name="html" id="html43" value="html4" type="radio">
<label for="html43">HTML4</label>
<br>
<input name="html" id="html53" value="html5" type="radio">
<label for="html53">HTML5</label>
</fieldset>
Run Code Online (Sandbox Code Playgroud)
https://codepen.io/stevef/pen/PQMaxr
| 归档时间: |
|
| 查看次数: |
2245 次 |
| 最近记录: |