[Observability Onboarding] Add ARIA labels to ambiguous links in footer (#190705)

Closes https://github.com/elastic/observability-accessibility/issues/126
**(internal 🔒)**

Fixes accessibility issue with ambiguous link labels.
This commit is contained in:
Mykola Harmash 2024-08-20 16:34:08 +02:00 committed by GitHub
parent 06445ee2ce
commit 504032992b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,6 +60,10 @@ export const Footer: FunctionComponent = () => {
'xpack.observability_onboarding.experimentalOnboardingFlow.exploreForumFlexItemLinkLabel',
{ defaultMessage: 'Discuss forum' }
),
linkARIALabel: i18n.translate(
'xpack.observability_onboarding.experimentalOnboardingFlow.exploreForumFlexItemLinkARIALabel',
{ defaultMessage: 'Open Elastic Discuss forum' }
),
link: URL_FORUM,
},
{
@ -78,6 +82,10 @@ export const Footer: FunctionComponent = () => {
'xpack.observability_onboarding.experimentalOnboardingFlow.browseDocumentationFlexItemLinkLabel',
{ defaultMessage: 'Learn more' }
),
linkARIALabel: i18n.translate(
'xpack.observability_onboarding.experimentalOnboardingFlow.browseDocumentationFlexItemLinkARIALabel',
{ defaultMessage: 'Learn more about all Elastic features' }
),
link: docLinks.links.observability.guide,
},
{
@ -118,6 +126,7 @@ export const Footer: FunctionComponent = () => {
<p>
<EuiLink
data-test-subj="observabilityOnboardingFooterLearnMoreLink"
aria-label={section.linkARIALabel}
href={section.link}
target="_blank"
external