Combobox when fail to retrieve dropdown content #1953
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @azhengtwilio - great question. We don't have en established pattern for this quite yet (though we're always accepting contributions!). The most similar use case I could think of that exists in the product today is this empty state when searching for a page in the new Console nav: What they essentially did was rendered that empty state message as a combobox dropdown item when the search query returned no results. That does mean that the empty state has a hover state and is clickable like a regular dropdown item. Combobox is designed this way because rendering the message as a dropdown item is the only way that users of assistive technology can access it (if the message were just plain text and not a combobox dropdown item, an AT user would have no way to navigate to it and would therefore not even know that it's there). For your use case, you'll likely want to show an error message, so you could use styling similar to what we show for inline errors on form elements. Do you have a product designer on your team who you could partner with to refine the design and copy of the error message? |
Beta Was this translation helpful? Give feedback.
Hey @azhengtwilio - great question. We don't have en established pattern for this quite yet (though we're always accepting contributions!). The most similar use case I could think of that exists in the product today is this empty state when searching for a page in the new Console nav:
What they essentially did was rendered that empty state message as a combobox dropdown item when the search query returned no results. That does mean that the empty state has a hover state and is clickable like a regular dropdown item. Combobox is designed this way because rendering the message as a dropdown item is the only way that users of assistive technology can access it (if the message were just plai…