-
Notifications
You must be signed in to change notification settings - Fork 839
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
[EuiTable][a11y] select row Checkbox elements must have correct labels #7542
Comments
@1Copenut Does this match your audit/reviews? Also, does a generic "check this row" label help all that much, or do we need to be more specific or individual in the screen reader text we offer? |
@cee-chen Yes, I've been seeing this in audits for Security Solution this past week. I think the label could be as simple as |
OK hold on, so you do need per-row differentiation? That's not as straightforward as it seems because row numbers are affected by pagination and sorting. For example, is the first row on the second page (with 20 items per page) considered "Row 1" or is it considered "Row 21"? |
@cee-chen @1Copenut I think it would be ideal if we could calculate rows starting from On the other hand, any solution you provide will address accessibility issues, so let's choose the option that is simpler for implementing |
@cee-chen && @alexwizp This is a tough question to get the right answer for without user research tbh. I can see both arguments:
I feel like data grids are information dense and meant to be filtered, flipped, sorted. Maybe a way forward is to own that we're not counting indexes and just be clear with the labeling. What if our label was aria-label="Check current view row 1" |
@1Copenut Are there other accessible table libraries out there with selection functionality that we can |
I have a couple of good ideas based on how Adobe is creating accessible labels in their useGridList hook. Basically they're concatenating two accessible labels by referencing IDs in an |
@alexwizp I took another look at this over the last couple of days. EUI provides a way for consumers to create accessible checkbox labels in the data grid components. I updated the description and proposed solution in https://github.com/elastic/security-team/issues/8577. I'm going to close this issue because it's necessary to create accessible labels by picking the best column from data being presented, rather than hardcoding it into design system components. |
We've received reports of a few accessibility (a11y) issues concerning the table component and the select/deselect row functionality. Could we consider adding an aria-label attribute to address these checkbox-related concerns?
Proposed solution
Update the input with an aria-label like:
The text was updated successfully, but these errors were encountered: