Skip to content

Commit

Permalink
remove overly prescriptive distinctions from aria-current values. (#1660
Browse files Browse the repository at this point in the history
)

Co-authored-by: Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com>
  • Loading branch information
2 people authored and pkra committed Aug 31, 2022
1 parent ab2dc64 commit f6290fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10330,11 +10330,11 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>
<p>The <sref>aria-current</sref> <a>attribute</a> is a token type. Any value not included in the list of allowed values SHOULD be treated by <a>assistive technologies</a> as if the value <code>true</code> had been provided. If the attribute is not present or its value is an empty string or <code>undefined</code>, the default value of <code>false</code> applies and the <sref>aria-current</sref> <a>state</a> MUST NOT be exposed by user agents or assistive technologies.</p>
<p>The <sref>aria-current</sref> attribute is used when an element within a set of related elements is visually styled to indicate it is the current item in the set. For example:</p>
<ul>
<li>A <code>page</code> token used to indicate a link within a set of pagination links, where the link is visually styled to represent the currently-displayed page.</li>
<li>A <code>step</code> 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.</li>
<li>A <code>location</code> token used to indicate the image that is visually highlighted as the current component of a flow chart.</li>
<li>A <code>date</code> token used to indicate the current date within a calendar.</li>
<li>A <code>time</code> token used to indicate the current time within a timetable.</li>
<li>A <code>page</code> token used to indicate a page within a set of pages, where the element is visually styled to represent the current page.</li>
<li>A <code>step</code> token used to indicate a step within a step-based process, where the element is visually styled to represent the current step.</li>
<li>A <code>location</code> token used to indicate the element that is visually styled as the current component, such as within a flow chart.</li>
<li>A <code>date</code> token used to indicate the current date within a calendar or other date collection.</li>
<li>A <code>time</code> token used to indicate the current time within a timetable or other time collection.</li>
</ul>
<p>Authors SHOULD only mark one element in a set of elements as current with <sref>aria-current</sref>.</p>
<p>Authors SHOULD NOT use the <sref>aria-current</sref> attribute as a substitute for <sref>aria-selected</sref> in widgets where <sref>aria-selected</sref> has the same meaning. For example, in a <rref>tablist</rref>, <sref>aria-selected</sref> is used on a <rref>tab</rref> to indicate the currently-displayed <rref>tabpanel</rref>.</p>
Expand Down

0 comments on commit f6290fe

Please sign in to comment.