Skip to content

A11y keyboard control AutoComplete nonstandard drop-down list filter #3373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DaveBest99 opened this issue Mar 2, 2017 · 4 comments · Fixed by #3405
Closed

A11y keyboard control AutoComplete nonstandard drop-down list filter #3373

DaveBest99 opened this issue Mar 2, 2017 · 4 comments · Fixed by #3405
Assignees
Labels
Accessibility This issue is related to accessibility (a11y)

Comments

@DaveBest99
Copy link

Bug, feature request, or proposal:

Bug: AutoComplete Drop-Down list does not display States as expected.

What is the expected behavior?

With focus in an empty text box, type any letter key. If any of the available choices begin with the letter typed, those choices are displayed in a drop down. If the letter typed does not match any of the available choices the drop-down list is not displayed and the focus remains in the text box, and the user is allowed to press up/down arrow keys in the list box. Until the user presses the arrow keys to highlight a particular choice, only the typed letters are displayed in the text box.

What is the current behavior?

Currently the screen reader user cannot see what is in the Edit box, and filtered list items with the typed text that appears anywhere in the item is displayed.

What are the steps to reproduce?

Use the keyboard with mouse disconnected and screen reader running.

What is the use-case or motivation for changing an existing behavior?

WCAG standard keyboard controls provide a consistent behaviour, and a consistent filter listing.

Which versions of Angular, Material, OS, browsers are affected?

Windows10 browsers and screen readers.

Is there anything else we should know?

Typing characters moves focus to any list item that has that letter in the State name. When focus is on "Alabama", pressing "n" moves focus to "Arizona" instead of "Nebraska". Pressing up/down arrow keys only shows those States that have that letter in the name, instead of those that start with that letter. Focus does not stay in the Edit box until an arrow key is pressed. Aria-alert could be used to announce the list item without moving the focus from the Edit box.

@kara kara added the Accessibility This issue is related to accessibility (a11y) label Mar 2, 2017
@kara
Copy link
Contributor

kara commented Mar 3, 2017

The filter is controlled by the user, not the autocomplete, so this is an issue with our demo. We should be using a demo filter that is more a11y-friendly. Will fix to filter by beginning of the string.

@DaveBest99
Copy link
Author

DaveBest99 commented Mar 3, 2017 via email

@kara
Copy link
Contributor

kara commented Mar 3, 2017

Apologies, I mean the web developer (not the end user). We can also add some guidance in the docs that recommends adding instructional info below for different filtering.

@kara kara closed this as completed in #3405 Mar 4, 2017
crisbeto added a commit to crisbeto/material2 that referenced this issue Jun 19, 2017
…plete demo

Fixes regex special characters causing the autocomplete in the demo app to throw.

Relates to angular#3373.
jelbourn pushed a commit that referenced this issue Jun 22, 2017
…plete demo (#5213)

Fixes regex special characters causing the autocomplete in the demo app to throw.

Relates to #3373.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants