-
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
[a11y] [EuiBasicTable] actions - overrides aria-label
for multi-action button
#7883
Comments
aria-label
for multi-action button
aria-label
for multi-action buttonaria-label
for multi-action button
@alexwizp Am I correct to understand that we'd want each row to have a unique From what I can tell from the code, the "All actions" button is rendered per column. Even if we'd provide a custom 💭 My thought here for a possible solution in context of the current available code:
Example code: type User = {
firstName: string;
actions?: {
'aria-label'?: string;
}
}
const columns = [
{
field: 'firstName',
name: 'First Name'
},
{
name: 'All Actions',
actions: [
// define actions as usual here
],
render: (props) => {
return (
<CollapsedItemActions
{...props}
aria-label={props.item.actions?.['aria-label']}
/>
);
},
}
] |
Right, I also want to add @1Copenut into that discussion. |
@mgadewoll, it's a really good question. I think this approach is a bit different from what @1Copenut wants to see, but from an But let's wait input from @1Copenut / @dave-gus before continue. |
@1Copenut just a reminder if you missed notification. Please have a look |
@1Copenut Do you have any advice on how to proceed? |
Apologies for the slow response. I must have confused this issue with another one. grimacing Anyway, given the complexity with data grids, if we could have an accessible label like "All actions, row 1" that would meet the letter of the ask. Buttons now have a relationship to their related cells of content and screen reader Form Control menus have unique labels instead of multiple "All actions" buttons listed. |
Description
We have a couple of reported issues within #3637 related to the
EuiBasicTable
actions API.The problem is with the default
aria-label
that we set foreuiCollapsedItemActionsButton
. For each row, it has the valueAll actions
, which causes accessibility issues for users who use screen readers.Unfortunately, the current API doesn't allow us to override the
aria-label
attribute. I see we can fix that issue by usingCustomItemAction
, but not sure that we should do that. Ideally, will be to find a way to address it forDefaultItemAction
.Could you please give us recommendations on how to resolve these issues?
Screen
The text was updated successfully, but these errors were encountered: