-
Notifications
You must be signed in to change notification settings - Fork 436
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
fix(arrowNavigation) - update way to listen for focus/blur events #10326
Conversation
/backport to stable27 |
This comment was marked as resolved.
This comment was marked as resolved.
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.
Nothing is blocking, except for a suggestion for a possible improvement.
2f00be9
to
bdeedc8
Compare
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's better now but ..
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.
Thanks, it seems ready now :
- Navigation including tabbing and keys works correctly.
- Mouse focuses are processed in the same way whether they are outside or on SearchBox.
- No more extra listeners reassignments to conversations.
Tested on both lists and it functions as expected 🦅
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
115a0e1
to
b513640
Compare
@@ -20,7 +20,8 @@ | |||
--> | |||
|
|||
<template> | |||
<li class="participant-row" | |||
<li :id="`${participant.source}_${participant.id}`" |
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.
Is it really required to be id
here and anchor
in the LeftSidebar
?
ID must be unique on a whole page, and I'm really not sure that IDs like user_${item.id}
are guaranteed to be unique across all applications on the page.
If it is actually only used as additional Node data to get item id from event.target?.id
can we use some custom attr here? For example, data-arrow-navigation-id
or at least data-id
?
P.S. duplicated IDs is one of the most large a11y issue we currently have in Nextcloud...
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.
For the LeftSidebar they are used by RouterLink in <Conversation/>
components, but not for the <NcListItem/>
and <Participant/>
So I think, we could find a way to avoid it
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.
For the LeftSidebar they are used by RouterLink in
<Conversation/>
But they were not used in Talk, right?
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.
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
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.
Fine by me with change id
to data-nav-id
.
But I'm still not a fun of mixing vanilla DOM manipulation with Vue.
Not tested.
☑️ Resolves
Enter
key code tries to click on removed element, which causes page reload - fixed with additional check🖼️ Screenshots
No visual changes
🚧 Tasks
🏁 Checklist
docs/
has been updated or is not required