Johannes Renoth created WICKET-7120:
---------------------------------------

             Summary: Impre Accessibility of AutocompleteBehavior
                 Key: WICKET-7120
                 URL: https://issues.apache.org/jira/browse/WICKET-7120
             Project: Wicket
          Issue Type: Improvement
          Components: wicket-extensions
            Reporter: Johannes Renoth


AutoCompleteBehavior does not generate Markup that is read correctly by a 
screenreader.

This configuration will work with NVDA 2024.2 and the latest Firefox
{code:java}
input must have

role="combobox"
aria-expanded="true/false"
autocomplete="off"
aria-autocomplete="list"
aria-controls=$ID

ul must have

role="listbox"
id=$ID

li must have

role="option"
aria-posinset: Item Position
aria-setsize: length of List
aria-selected: true when selected / false when not
tabindex="-1" {code}
This ensures that the Options are read correctly by a screenreader when 
channing the selection via keyboard (arrow up/down)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to