Add aria-label to the listbox for autocomplete, for accessibility #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi there!
I'm interested in adding an aria-label field for this autocomplete tooltip to meet the guidelines of this accessibility check.
Since the autocomplete is an input field, I propose providing it with an aria-label indicating that it's the input field for the autocomplete. What do you think?
This field will be associated with the editor via an aria-haspop attribute, and is not something people will be directly navigating to. Can you describe concretely how adding a label to it improves the quality of the read content during completion?
When I'm in the CM6 editor and I type "." to get the autocomplete selections, the Mac screen reader says:
I thought that having it read out autocomplete would be beneficial because the aria-label field seems to be strongly recommended for input fields (the listbox in question), at least according to the accessibility guidelines I'm following in the link on the OP.
It sounds like you feel that it's too chatty to also add that in. Would you say that the accessibility guidelines about listboxes needing aria-labels are inaccurate in this instance?
Attached patch does something similar, including support for internationalization.
Pull request closed