You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Johannes Renoth (Jira)" <ji...@apache.org> on 2024/08/02 09:08:00 UTC

[jira] [Commented] (WICKET-7120) Impre Accessibility of AutocompleteBehavior

    [ https://issues.apache.org/jira/browse/WICKET-7120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17870417#comment-17870417 ] 

Johannes Renoth commented on WICKET-7120:
-----------------------------------------

PR is here https://github.com/apache/wicket/pull/933

> 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
>            Priority: Minor
>
> 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)