-
Notifications
You must be signed in to change notification settings - Fork 843
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
Featurebug/combobox input focus #1258
Featurebug/combobox input focus #1258
Conversation
@chandlerprall , I'm not sure if you saw but I pushed a PR against your branch with some more fixes: chandlerprall#2 |
src/components/combo_box/combo_box_options_list/combo_box_options_list.js
Show resolved
Hide resolved
- Fixed single selection truncation - Actually apply `compressed` styles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great overall! I had a few comments but I also think the UX of using ESC
to open and close the options list to be slightly improved. I think the existing UX is confusing because ESC
causes your focus to vanish from the user's perspective. What do you think of mimicking the UX of react-select whereby ESC
closes the options list but retains focus on the input? The user can reopen the input by hitting an arrow key or enter. This way as a user I'd feel more in control of where the focus is.
@snide what do you think about CJ's
That would resolve the popover esc->popup->esc->popup loop. I went back and forth on if |
@chandlerprall Sounds good to me. Good idea @cjcenizal |
@cjcenizal everything should be addressed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in browser, UX of Escape
key is great! Thanks for the changelog updates, too. Nice work!
Summary
fixes #1195 fixes #1251 closes #589
input
instead of shifting focus to the popover optionscompressed
prop added toEuiComboBox
( @cchaos please verify & review this )noSuggestions
is presentChecklist
[ ] This was checked in dark mode