-
Notifications
You must be signed in to change notification settings - Fork 375
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
Combobox with a Read Only Input #1330
Comments
A quick note that even in default HTML selects, the user can still type, but just not as raw input, instead it’s treated as type-ahead search with a timeout that’s platform-specific, but feels right when it’s between 400MS and 800MS, IMHO, if only one letter is typed, it’s the same as first-letter navigation.
Such a construct should support the above.
|
Given that the default role of a select is Combobox, which aren’t read only, I’ve always wondered why the role of Combobox on its own isn’t good enough as it entirely mimics the native control. The aria-autocomplete property adds additional information needed to communicate you can type into the field, so the lack of autocomplete should be fine as the default, with no read only property. You can prevent the typing in the input with JavaScript, and hook into the event still to perform the behavior that @sinabahram mentions. |
@SiTaggart But it feels weird to prevent users from typing in the input with JavaScript... But if this is the preferred pattern can an example be added to the ARIA Authoring Practices? Just so that the pattern is documented. |
I tested multiple variations of exactly this pattern last year in a usability study (and did straightforward AT support testing). I think we should implement this with More here, with sample implementations: https://www.24a11y.com/2019/select-your-poison-part-2/ |
Possible dup of #1026 ? |
@smhigley commented:
100% agree. We could also consider using a button instead of a div.
Mee too! |
@carmacleod wrote:
Yes, duplicate. Closing and will reference with a description of discussion. |
There should be an option to have a combobox where a user can select an item, but not type in the input. This mimics the behavior of an HTML Select, but allows flexibility to style the listbox (currently, you cannot override the default HTML select styles).
Examples:
My main question is: How do we communicate that the user cannot type, but that they can select an option?
The text was updated successfully, but these errors were encountered: