具有带有aria-label标签的图标的按钮仍然是“空按钮”错误

Chr*_*ine 5 html accessibility section508 htmlbutton wai-aria

带有的按钮aria-label

<button type="button" class="btn btn-default dropdown-toggle"
  aria-expanded="false"
  aria-label="Sort">
  <i class="fa fa-arrows"></i>
</button>
Run Code Online (Sandbox Code Playgroud)

仍然被WAVE标识为可访问性错误(“空按钮”)。有任何想法吗?

小智 5

较旧的屏幕阅读器/浏览器不使用 ARIA。使用视觉隐藏的文本是一种更可靠的方法,如上面评论中留下的 CBroe 链接所示。