-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: implement multi-tab-stop #7215
base: main
Are you sure you want to change the base?
Conversation
I'm wondering if we could handle this the same way as |
@devongovett I figure this means you want multi tab mode support only inside grid list hooks? Or are you referring to adding a At the moment, Likely we should also find a better way to forward the modality refs we currently use, but we figured it was a starting point at least to get the idea across. While I understand the ask to exclude For example, we designed our Maybe this is a good thing though? |
hm we'd need to share information regardless because the item doesn't know how to find out the dom element after or before the collection without a ref to it, but its less cumbersome than the 3 refs I proposed. What do you think about having the tabbing direction globally available just like the modality logic? Could it be as easy as having a onFocus listener globally that checks if relatedElement exists or not and is before or after the currentTarget/target probably in capture phase so you can use that information further down |
Looking back at the issue thread, I'd summarize your problems with using
Let me know if I missed something else there. I think both of these are reasonable features to support. I think both of these could be implemented within
The reason for the capturing listener is that historically we only supported |
@devongovett Thanks for circling back on this! We agree 1.) This is doable, but we need to prevent marshaling in more scenarios. Preventing it only when previously on another card means we would marshal on 2.) Can you elaborate on your reasoning as to why you want to deal with focus propagation inside child elements? We were wondering if the cell could 3.) We are also still left with the problem of marshaling when As you suggested, elements utilizing the |
@devongovett Just opened #7277 for a working draft on the requested behavior. Let me know what you guys think! |
draft for the following issue: #7121
I have implemented the behaviour described in the previously mentioned issue.
Known issue 1: When you alt+tab out and in onFocus is called and the manager.isFocused state triggers the effect in the selectable item moving the focus to item, but this was already in the previous version.
Known issue 2: When you shift tab onto the collection it scrolls to the last element before we programmatically move the focus.