adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
723 stars 737 forks source link

[Navigation v2] Add a lang attribute on links to pages written in foreign language #2730

Open renow-luxembourg opened 2 months ago

renow-luxembourg commented 2 months ago

Feature Request

Current Behavior : In the navigation component, the destination page of some links can be in different language (with a custom language defined in advanced properties) Links to pages written in a foreign language are not well rendered to assistive tool (like the NVDA screen reader)

Expected behavior/code : Each link in the navigation component should be vocalized in its appropriate language.

Environment

Possible Solution : Add a lang attribute on navigation link to a destination page with a content in another language.

Additional context : WCAG 2.1 : 3.1.2 Language of Parts (https://www.w3.org/WAI/WCAG21/Understanding/language-of-parts) WCAG 2.1 : Technique H58 (https://www.w3.org/WAI/WCAG21/Techniques/html/H58) RGAA 4.1.2 / RAWeb 1 : 8.7.1 https://accessibilite.public.lu/fr/raweb1/criteres.html#test-8-7-1 (in french)