Open lamarjordanux opened 4 years ago
Current code:
<a class="btn btn-primary btn-block" href="/depts/health/covid-19/languages/spanish.aspx" role="button" data-toggle="tooltip" data-placement="left" title="" data-original-title="COVID-19 Recomendaciones de Salud Pública">Spanish <span class="fas fa-long-arrow-alt-right" aria-hidden="true"></span> Español</a>
Suggested code:
<a class="btn btn-primary btn-block" href="/depts/health/covid-19/languages/spanish.aspx" role="button" data-toggle="tooltip" data-placement="left" title="" data-original-title="COVID-19 Recomendaciones de Salud Pública">Spanish <span class="fas fa-long-arrow-alt-right" aria-hidden="true"></span> <span lang="es">Español</span></a>
What changed?
Español
is now <span lang="es">Español</span>
so a text reader will read it as a Spanish word instead of sounding it out as an English word and mispronouncing it.
Impact: Essential for text readers.
Difficulty of change: tedious but not difficult.
Issue Summary
Screen readers may not announce the language properly without lang attributes.
Steps to reproduce
Steps to reproduce the behavior:
Behavior
Expected behavior
Screen reader pronounces the language in native tongue.
Actual behavior
Versions
Device Information:
Screen Reader or AT Information
Screenshots
If applicable, add screenshots to help explain your problem.
Code
Current Code
Suggested Code
Specifications
Additional References