Skip to content

Commit

Permalink
Spin Button Pattern: Add aria-invalid guidance for values outside all…
Browse files Browse the repository at this point in the history
…owed range (pull #825)

In response to issue #704, modified the roles, states, and properties section of the spin button pattern in aria-practices.html.

Added a bullet to the list of roles, states, and properties stating that aria-invalid is set true if it is possible for the textbox to contain a value that is not allowed.
  • Loading branch information
mcking65 authored Aug 29, 2018
1 parent bef33cf commit 4992388
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aria-practices.html
Original file line number Diff line number Diff line change
Expand Up @@ -2269,6 +2269,12 @@ <h4>WAI-ARIA Roles, States, and Properties</h4>
Otherwise, the spinbutton element has a label provided by
<a href="#aria-label" class="property-reference">aria-label</a>.
</li>
<li>
The spinbutton element has
<a href="#aria-invalid" class="state-reference">aria-invalid</a> set to <code>true</code>
if the value is outside the allowed range.
Note that most implementations prevent input of invalid values, but in some scenarios, blocking all invalid input may not be practical.
</li>
</ul>
</section>
</section>
Expand Down

0 comments on commit 4992388

Please sign in to comment.