-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DataGrid] The checkbox shouldn't be tabbable #1430
Comments
Why shouldn't it be in tabbable? It's a control with a button behind it 🤔 |
We removed the |
@dtassone Because this is described in the WAI-ARIA authoring practices. The grid is a composite widget. They reiterate what this notion means:
https://www.w3.org/TR/wai-aria-practices/#grid Now, the cell > checkbox case falls under this section:
In theory, we should have the checkbox tabbable and focused, not the cell. This is because a checkbox doesn't have any key handler that conflicts with the grid arrow navigation. In practice, I'm not sure it's manageable. We also don't remove the tab index from all the cells developers are providing. IMHO, we should take shortcuts and document how developers can implement it correctly, using our API, but not have the data grid bring an implementation fully compliant by default. For instance, in a cell, the developer could listen to the change focus event, and do the heavy lifting (move focus, remote tabIndex on their side). We could start with this column: |
The expected behavior is already implemented on the latest version |
Current Behavior 😯
The select all checkbox is in the tab order
Expected Behavior 🤔
The select all checkbox is not in the tab order
Steps to Reproduce 🕹
Context
This is a follow-up on #1289. We missed a
tabIndex={-1}
on the checkbox and test cases.Your Environment 🌎
v4.0.0-alpha.25
The text was updated successfully, but these errors were encountered: