Avoid errors in posts widget aria-label on non english pages #24584
Speaka
started this conversation in
Feature Request
Replies: 1 comment
|
+1 - Same on my site. Please fix this! Not sure, if this should be an issue instead of a feature request... |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe..
Adding customs aria-labels to read-more links in posts widget.
On non english installations you will get lighthouse errors and seo penalties if the linktext and aria-label mismatch.
For example in german you'll translate read more to weiterlesen for native experience. This produces this html:
But this results in the following lighthouse error (and penalties in other seo/accesibility tools):
Warning
Elements with visible text labels do not have matching accessible names.
Visible text labels that do not match the accessible name can result in a confusing experience for screen reader users.
Describe the solution you'd like.
To resolve this issue it needs to either translate the aria-label prefix "Read more about " to the installations language oder enable a custom string.
Describe alternatives you've considered.
No response
Additional context
No response
Agreement
All reactions