Skip to content

Commit

Permalink
Sppinbutton Pattern: Add aria-invalid guidance for values outside all…
Browse files Browse the repository at this point in the history
…owed range

In response to issue #704, modified the roles, states, and properties section of the spinbutton 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 committed Aug 6, 2018
1 parent 0549dd0 commit 2934b11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aria-practices.html
Original file line number Diff line number Diff line change
Expand Up @@ -2269,6 +2269,10 @@ <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>
If it is possible to modify the value of the textbox such that the value is outside of the allowed set of values, the spinbutton element has
<a href="#aria-invalid" class="state-reference">aria-invalid</a> set to <code>true</code>.
</li>
</ul>
</section>
</section>
Expand Down

0 comments on commit 2934b11

Please sign in to comment.