mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
fix: [Platform:StackManagement:Kibana:Spaces] Information about saved objects in content rows is not announced (#218438)
Closes: #218362 **Description** When user tabs through content rows on content tab, the information about saved objects in the content row is announced as "link 1, link2" which doesn't give any context to non-sighted user. **Changes made:** 1. Set `aria-label` for mentioned place # Screen <img width="1063" alt="image" src="https://github.com/user-attachments/assets/452885c2-9738-4d17-84c9-3033250c6841" />
This commit is contained in:
parent
c45f791ddb
commit
a70226ab92
1 changed files with 18 additions and 1 deletions
|
@ -61,7 +61,24 @@ export const EditSpaceContentTab: FC<{ space: Space }> = ({ space }) => {
|
|||
space.id,
|
||||
`${ENTER_SPACE_PATH}?next=${uriComponent}`
|
||||
);
|
||||
return <EuiLink href={href}>{value}</EuiLink>;
|
||||
return (
|
||||
<EuiLink
|
||||
href={href}
|
||||
aria-label={i18n.translate(
|
||||
'xpack.spaces.management.editSpaceContent.countLinkAriaLabel',
|
||||
{
|
||||
defaultMessage:
|
||||
'Discover {count} {count, plural, one {item} other {items}} in {name}',
|
||||
values: {
|
||||
name: item.displayName,
|
||||
count: item.count,
|
||||
},
|
||||
}
|
||||
)}
|
||||
>
|
||||
{value}
|
||||
</EuiLink>
|
||||
);
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue