-
Notifications
You must be signed in to change notification settings - Fork 120
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
aria-autocomplete inline suggestion interaction causes potential OnInput violation and raise discoverability concerns #494
Comments
So, this issue is only about the spec text ... not the APG. You will certainly have the opportunity to review what we do for the APG. Do you have a proposal for the spec text? BTW, I am not clear what you mean when you say that the sighted user cannot assume or predict this behavior ... which behavior? It seems that the norm for inline is that selected text following the cursor is accepted unless removed. An example of inline suggestion that I use daily is in e-mail clients like Outlook or previously Notes. I type a single letter and a suggestion appears following the cursor. I can keep typing and the suggested text after the cursor adjusts. I press tab and the value that is accepted is what I typed plus what was autocompleted. This is also how inline suggestions work in pretty much every code editor except in some cases you have to press a key to start the suggestion process. Or, consider how it works in something like the Firefox dev tools in the console. Soon as I type a "d", ocument immideiately appears. I press tab and the value in the field is then "document". |
@mcking65 , the behaviour you describe for Notes does not correlate with the visual use of inline for me. For me what is happening is that a list immediately appears below the input as soon as a I type a character, and the first item on this list is selected. As I type, the list updates based on my modified character string. So at no point does the actual text "appear" after the insertion point. |
Every coding tool I've looked at so far has not used the inline suggestion. They have used the list mechanism, with the first choice automatically being selected. That is a significantly different user experience, for which it is much easier to predict behaviour and which creates much less cognitive load. |
@mbgower is this still an issue. I am closing please reopen if you would like. |
The guide states
This directive is open to interpretation and potentially problematic. First, when the paragraph states "appears in the field after the input cursor", it is not clear whether it is stating that when such text is appended 1) the cursor repositions to the end of the appended text, or 2) the input cursor remains in position and the appended text exists beyond the current insertion point. If the latter, the paragraph seems to direct that if I type a search for "yellow" and the inline suggestion becomes "yellowstone", the results for "yellowstone" would be posted if I pressed ENTER or TAB. That seems to be causing a change of context based On Input. The sighted user can neither predict nor assume this behaviour. (In implementations I've seen, this appended text is greyed in, implying it is impermanent.) The screen reader user or user with significant magnification may not even be aware this text has been appended, and will find their search for "yellow" altered to a completely different search. As well, there appears no way of overriding the suggestion.
I have seen examples of both of these interpretations, as well as implementations that provide what I would argue is a more reasonable implementation, given the lack of guidance. For the latter, Google appends text beyond the insertion point, and even updates the results in the background based on the appended text, but if the user presses ENTER, the results are based on the original string ("yellow").
I would request both clarity about inline suggestions, as well as urge suggested implementations which address OnInput changes, discoverability and cognitive load be captured in the APG.
The text was updated successfully, but these errors were encountered: