-
Notifications
You must be signed in to change notification settings - Fork 420
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
Handle keyboard input without search active #710
Conversation
5ff152f
to
213e2a9
Compare
6a4f6f8
to
5f20c13
Compare
213e2a9
to
a36cbc6
Compare
a36cbc6
to
704a4e0
Compare
I found a bug in hovering the header elements: Without search: works as expected Screen.Recording.2022-11-23.at.10.50.33.movWith search: hover doesn't work Screen.Recording.2022-11-23.at.10.49.26.movI seems this was caused by the changed in #706: - if (!entries.includes(selectedEntry) && !selectedEntry) {
+ if (!entries.includes(selectedEntry) || !selectedEntry) { |
@smbea Without additional context could you user test the latest changes on this branch. Does it feel intuitive for you and fix #710 (comment)? |
@nikku it fixes the issue. But I'm a little torn because the first state shown when the menu is opened (first entry selected) is different from when the mouse enters and leaves the menu (nothing is selected). Personally: I would expect either always having something selected or only having something selected if explicitly selected (don't select by default). But I don't know if that's just me 😅 |
Thanks for the feedback. We could ensure that "automatic selection" only happens if there is actual keyboard filtering happening. Why we have it in the first place: To support a streamlined keyboard selection flow. |
@nikku I think that makes sense. I also understand why we did it, but the difference in those situations just felt a bit off |
Getting rid of the initial keyboard focus feels odd, too. For users to understand that they can navigate using the keyboard they need an initial visual indication. Let's leave it like this; I'll try to see if I can ramp up the test coverage. For comparison menu: And similar menu in Camunda Desktop Modeler: |
@nikku true. If we already have something similar and no doesn't bother anyone, then I agree we keep it for now at least. I didn't find any other issues so I'd say we are good to go |
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.
It works great. I wouldn't change anything interaction-wise.
35df5c3
to
704a4e0
Compare
Following up on the proposed improvements here: #711. This branch can be reviewed independently. |
Depends on #706, #709, #708.
Closes #701