Description
Feature Request
Current Behavior :
Some informative image contain text in foreign language.
If we follow the WCAG/RGAA/RAWeb1 rules, the alternative text should contain at least the visible texte of the informative image.
But for the moment, in the image component, we can't define a language for the alternative text.
This aims to cause that the image alternative is not well rendered to assistive tool (like the NVDA screen reader)
Expected behavior/code :
We should be able to add a lang attribute for each image.
Environment
- AEM 6.5.19
- Core Components version 2.23.4 - Image component v3 (https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wcm/components/image/v3/image/image.html)
Possible Solution :
Add a lang attribute on the 'img' tag based on the language defined in the "advanced" tab of the asset property
Additional context :
WCAG 2.1 : Technique H37 (https://www.w3.org/WAI/WCAG21/Techniques/html/H37)
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/en/raweb1/criteres.html#test-8-7-1
RGAA 4.1.2 / RAWeb 1 : 1.1.1 https://accessibilite.public.lu/en/raweb1/criteres.html#test-1-1-1