颚未读取错误消息 [英] Jaws doesn't read error message

查看:54
本文介绍了颚未读取错误消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用angularjs并试图使该网站可访问.当用户没有输入或忘记输入必填字段时,jaws不会读出错误消息.我尝试将div ="alert"添加到div中,但似乎不喜欢它.有什么建议

I am using angularjs and trying to make the website accessible. When a user doesn't enter or forget to enter into required field, jaws doesn't read out the error message. I have tried adding role="alert" to the div but it doesn't seem to like it. Any suggestions

   <div aria-type-label="{{'some:error'}}">
   <span role="alert" class="error-message">Error</span>
   </div>

推荐答案

您必须同时使用aria描述和角色警报.请看看:

You have to use aria-described by and role alert together. Please have a look:

<input type="textbox" id="yourField" aria-describedby="yourFieldError">
<span role="alert" data-bind="visible:yourCondition" class="error-message" id="yourFieldError">Error</span>

希望这会有所帮助.

这篇关于颚未读取错误消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆