-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
a11y: 'tab' stops scrolling through Table
with onRowClick
#625
Comments
This is an unfortunate side-effect of windowing. (There are some others, such as "find in page" browser features won't work in the normal way since content isn't actually on the page.) I'm not sure how easy this would be to fix, to be honest, nor if it belongs in the base react-virtualized library. (It could make a nice addon though.) |
Thank you for the explanation, @bvaughn. I don't yet know how this library functions internally so I'm might be saying something stupid but would rendering few more rows that are not visible above and bellow help to resolve this particular issue? |
That is already possible, actually. By default, react-virtualized renders 10 rows below the threshold. (Check out the |
I've just realized that Shift-Tab doesn't work at all unless half of an element is shown even then the behavior is buggy as demonstrated above.
Can this be solved in an add-on or requires changes to the core? |
I don't know. That sounds like built-in browser behavior, considering the next row(s) are in the DOM just not visible. |
I see the problem. If you scroll down first, then use Shift+TAB to scroll back, You could work around this by specifying a naive custom Admittedly this isn't a very satisfying default behavior though. Hm. |
Thank you, @bvaughn. I've tested your example with a custom |
Thanks for the follow-up info! I'm going to leave it open for now and give it some more thought. I think maybe I can improve this by default without impacting perf too much. |
…s always at least 1 row overscanned in a given direction. This helps with a keyboard accessibility (TAB / TAB+SHIFT) problem reported in issue #625. Grid overscan behavior is not adjusted by default because I didn't want to impact performance too much.
Default behavior has been fixed/corrected via e6656c1. It will go out with the next point release. |
9.6.0 release just went out with this. |
Seems like accessibility is broken in
Table
and maybe other components (I haven't tried).First case: it happens if I press 'Shift-Tab' so it moves the scroll bar up as you can see on the next image. After that the last item is the last visible item, because it then switches focus to a button:
Second case if I press 'Up Arrow' key in a way that partially or fully hides focused item:
You can find this table on codepen: http://codepen.io/dattaya/full/evrYqM/
The text was updated successfully, but these errors were encountered: