-
Any idea why we're seeing this behavior? Is there something we're missing or could this be a limitation on Combobox?
The Combobox is working for the most part for Console Search, except for these couple UI issues, so if there's anyway we can make changes to our implementation instead of building our own component altogether, that'd be very helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
Hi @yannieyip Currently we are setting an underline on hover for the Combobox items. We may need to reconsider that for users passing their own For question two, we do have a backlog ticket to make the chevron removable. What is your timeline for this project? Thanks. |
Beta Was this translation helpful? Give feedback.
-
@richbachman @serifluous - Thank you both for the prompt replies. I've attached some screenshots with explanation below. A) For the first 3 cases (initial message, loading search results, empty search results), we used the B) You can see the chevron icon in these screenshots, which is a bit confusing for certain results being shown. We do have This current work is for the new Console Navigation launch due in 4 weeks. So, if Paste could squeeze in these updates in your next sprint or two, that would be amazing! |
Beta Was this translation helpful? Give feedback.
-
@richbachman I forgot to mention - we discovered one more issue that might be a bug. On the initial case, the input (query string) is an empty string. When we tested with the following snippet:
The display still works, but with the following console error It seems like the downshift component in Combobox doesn't like when we flip from an uncontrolled to a controlled input. Or perhaps there is something wrong with our implementation? |
Beta Was this translation helpful? Give feedback.
-
Hi @yannieyip. Thanks for the screenshots and the code snippets for the potential bug. We'll create some tickets and get them prioritized. We'll keep you posted. |
Beta Was this translation helpful? Give feedback.
-
Hi @yannieyip, I have follow up comments regarding the option content and styling and arguably this is just an issue with alpha components not having full documentation yet that covers certain edge cases. So a combobox is a form input. You are setting the value of the combobox based on;
Upon setting a value, you can choose to perform "some action" based on For assistive technology to be able to machine read the contents of the listbox popup, everything we show must be a valid option. Meaning it is technically selectable, and that in turn comes with content constraints. So the fact that any option gets underlined on hover, is reasonably by design, as it must be selectable if you want me to be able to read the text using assistive technology. The second part is an option "must not" (air quotes are important as there is nuance in that) contain further or additional actionable content. So for the no results option, we can't have the word, "documentation" as an anchor. The whole thing has to be the action. (I'm fairly sure that came up in design review and hand over of the console nav designs). By all means, throw a The nuance in "option must not contain actions" is that if you are performing a page navigation as a result of setting a value, you might want to expose the cmd+click behaviour of the browser so the link opens in a new window. Obviously we can't recreate that using an input or onChange events. In that case I would not use the
All of this will go into the docs eventually once we write them. |
Beta Was this translation helpful? Give feedback.
Hi @yannieyip, I have follow up comments regarding the option content and styling and arguably this is just an issue with alpha components not having full documentation yet that covers certain edge cases.
So a combobox is a form input. You are setting the value of the combobox based on;
Upon setting a value, you can choose to perform "some action" based on
onChange
of selecting a valid option, or submitting the form the input is contained in if it's an arbitrary string (performing a generic search, for example, type a random str…