Skip to content

Commit

Permalink
Address accessibility issue:
Browse files Browse the repository at this point in the history
"Links must have discernible text"
https://dequeuniversity.com/rules/axe/4.8/link-name?application=AxeChrome

which in this case is due to this:
- To ensure all link text is visible to screen readers,
  link text cannot be hidden (e.g. with display: none or aria-hidden="true").
  • Loading branch information
sbasile-ch committed Mar 19, 2024
1 parent a623e57 commit bf8b935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/locales-banner.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ It receives:
{% for l in languages %}
<li class="govuk-language-select__list-item">
<a href="{{lang2url.addLangToUrl(currentUrl, l.IsoCode, true)}}" lang={{l.IsoCode}} rel="alternate" class="govuk-link" >
<span aria-hidden="true">{{l.Name}}</span>
<span>{{l.Name}}</span>
</a>
</li>
{% endfor %}
Expand Down

0 comments on commit bf8b935

Please sign in to comment.