You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The existing EuiSuggest has quite a few a11y shortcomings (see #2404 for the original remediation plan).
Instead of effectively rewriting it from scratch, it should use EuiSelectable to inherit all the a11y work that went into it and to consolidate implementations of similar components.
On top of EuiSelectable, EuiSuggest largely provides:
An opinionated rendering of individual items
Some more states of the search field
I think the EUI team prefers to keep the EuiSuggest component and to wrap EuiSelectable within it but another implementation option is to add a "renderAs" prop (or something along those lines) to EuiSelectable to adjust styling.
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
I've started exploring the conversion to EuiSelectable and the path looks straightforward, but I have questions about the purpose of EuiSuggest. Mainly, it is currently a fully controlled component (i.e., it does not handle filtering the list or managing selected items, but relies on a parent controller to do so). Is this a paradigm we want to continue? Are we converting to EuiSelectable strictly for the a11y benefits? Or is part of using EuiSelectable is to enable its search, filter, and selection features?
This one is tricky and I'm honestly not sure if this component is even used anywhere (yet). But my guess is that we'd definitely have to support a mechanism of custom search queries and not just plain text filtering. what we'd probably do is just use the selectable list for rendering the items and keep the search input separate.
what we'd probably do is just use the selectable list for rendering the items and keep the search input separate.
That's my read as well. I'll probably put up a PR with this type of conversion and we can discuss more there. At the very least it's a step in the right direction.
Activity
[-]Rebuild [EuiSuggest] with EuiSelectable[/-][+][EuiSuggest] Rebuild using EuiSelectable[/+]github-actions commentedon Mar 20, 2021
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.
thompsongl commentedon Sep 2, 2021
I've started exploring the conversion to EuiSelectable and the path looks straightforward, but I have questions about the purpose of EuiSuggest. Mainly, it is currently a fully controlled component (i.e., it does not handle filtering the list or managing selected items, but relies on a parent controller to do so). Is this a paradigm we want to continue? Are we converting to EuiSelectable strictly for the a11y benefits? Or is part of using EuiSelectable is to enable its search, filter, and selection features?
cc// @cchaos
cchaos commentedon Sep 2, 2021
This one is tricky and I'm honestly not sure if this component is even used anywhere (yet). But my guess is that we'd definitely have to support a mechanism of custom search queries and not just plain text filtering. what we'd probably do is just use the selectable list for rendering the items and keep the search input separate.
thompsongl commentedon Sep 2, 2021
That's my read as well. I'll probably put up a PR with this type of conversion and we can discuss more there. At the very least it's a step in the right direction.