进度条当前步骤的正确属性是什么,aria-current=“true"或 aria-current=“step"? [英] What is the correct attribute for the current step of a progress bar, aria-current="true", or aria-current="step"?
问题描述
网络上的各种教程以及本
W3.org 似乎表明 aria-current="step"将是正确的,除非视觉样式元素不是链接这一事实改变了这一点.
<块引用>用于指示基于步骤的流程的步骤指示器内的链接的步骤标记,其中链接的视觉样式以表示当前步骤.- w3.org
There's contradictory information in various tutorials across the web, as well as in this SO question, so I'm seeking some help to clarify. In contex to a step progress indicator like the one below, which way is correct value for the current step in-progress, aria-current="true", or, aria-current="step"?
W3.org seems to show that aria-current="step" would be correct, unless the fact that the visually styled element is not a link changes this.
A step token used to indicate a link within a step indicator for a step-based process, where the link is visually styled to represent the current step. - w3.org
这篇关于进度条当前步骤的正确属性是什么,aria-current=“true"或 aria-current=“step"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!