-
-
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
Grid has hardcoded tabIndex=0 that interferes with focusable contents #275
Comments
Hi @trevorr,
The So I'm not sure what the exact problem is? Mind elaborating a bit more? :) PS. I'd love to see the component you're working on if it's something you plan on sharing at some point. I enjoy seeing components built on top of react-virtualized! |
@bvaughn, thanks for the quick reply! Yes, I could suppress the focus outline, but the real problem is that the https://www.evernote.com/l/AJgGb0Vtc0BFu7Aocx0N88Ql-Ebu_LKSkrU When the items of the PS. I definitely plan to open source the component soon as soon as it's stable and documented. It's essentially a native React and Bootstrap (a la react-bootstrap) "combobox" component that acts as a select (similar to select2) or input (by optionally not requiring the value come from the list). |
Ah, I see. Thank you for elaborating. I can see how that's not ideal for what you're describing. I will add a Looking forward to seeing your component. :) |
New Cheers. |
Awesome, thanks! |
I've verified that setting |
Thanks for the confirmation! :) |
I'm working on a component somewhat similar to
react-virtualized-select
, where I have drop-down menu containing aVirtualScroll
that virtualizes a large number of choices, but I'd like the individual rows to be focusable. (The alternative of styling to appear focused, as is done inreact-virtualized-select
, can lead to accessibility issues, since things like screen readers don't understand styles.) I have focus mostly working by settingtabIndex=-1
on each item and handling keyboard up/down events to move the focus. However, I notice that the underlyingGrid
has a hardcodedtabIndex=0
[here], which causes the Griddiv
to become focused and (thanks to Bootstrap) display a blue outline whenever the scroll bar is clicked on. Is there a reason for this, or would it be possible to remove it? When I remove the property using the Chrome element inspector, I don't notice any loss of normal functionality (e.g. default keyboard scrolling still works), and my row stays focused (while still visible). If there's some use case it is supporting, perhaps it could be made optional?The text was updated successfully, but these errors were encountered: