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:
Alexey Antonov 2025-04-16 23:37:16 +03:00 committed by GitHub
parent c45f791ddb
commit a70226ab92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>
);
},
},
];