无法正确读取辅助功能(JAWS)

时间:2017-11-30 21:35:32

标签: jquery accessibility wai-aria jaws-screen-reader section508

我在Bootstrap中使用的模态中有一个select元素。当屏幕阅读器(Jaws)在加载时读取选择框,它会读取select中的所有选项。相反,它应该像在常规页面上那样读取它,“可以使用向上和向下箭头键更改组合框(选项值)”。如果我选中了select元素,它会按照它应该的方式读取它。

Bootstrap模态:http://getbootstrap.com/docs/3.3/javascript/#modals-examples

我目前正在使用Jaws 18和IE 11来测试

codepen:https://codepen.io/thecssguru/pen/BmvobW

<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="0" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Jaws Test</h4>
      </div>
      <div class="modal-body">
        <p> The list should not read all the values
</p>
<select>
  <option>January 10, 2017</option>
  <option>January 11, 2017</option>
  <option>January 12, 2017</option>
  <option>January 13, 2017</option>
  <option>January 14, 2017</option>
  <option>January 15, 2017</option>
</select>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

0 个答案:

没有答案