Skip to content

Commit

Permalink
Add Accessibilty Features section to Select-only combobox example
Browse files Browse the repository at this point in the history
  • Loading branch information
carmacleod authored and mcking65 committed Jul 8, 2020
1 parent 7efa6e5 commit 69c7588
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/combobox/combobox-select-only.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,20 @@ <h2 id="ex_label">Example</h2>
<div role="separator" id="ex_end_sep" aria-labelledby="ex_end_sep ex_label" aria-label="End of"></div>
</section>

<section>
<h2>Accessibility Features</h2>
<p>While functionally similar to an HTML select element, there are places where this example diverges from HTML select behavior.</p>
<ol>
<li>
To allow the user to see what is in the listbox, this example opens the listbox when the user types printable characters.
</li>
<li>
To give the user the ability to explore the values with the arrow keys and then cancel and keep the previous value,
this example selects on Space, Enter, or loss of focus, and can be cancelled with Escape.
</li>
</ol>
</section>

<section>
<h2 id="kbd_label">Keyboard Support</h2>
<p>
Expand Down

0 comments on commit 69c7588

Please sign in to comment.