The 'Advanced' section of fields includes two field descriptions with links to Wikipedia ('geo_position' and 'icbm'). The text of both links is the same ('see Wikipedia for details') while the URLs are different, which is bad for accessibility.
An easy fix would be to change the link text to something like 'see Wikipedia for details on Geographic coordinate system'
If the relative brevity of the visible link text is valuable, make that more complete & unique text into an aria-label attribute on the link.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | unique_link-3158395-2.patch | 1.78 KB | kasey_mk |
Comments
Comment #2
kasey_mk commentedComment #3
geekygnr commentedLooks like the patch as the solution so moving to Needs Review.
Comment #4
geekygnr commentedLooks good.
Comment #5
damienmckennaIs there a rationale to use "aria-label" instead of "title"?
Comment #6
geekygnr commentedI didn't write it but it looks like it follows WCAG guidelines: https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA8.html
Comment #7
mherchelYeah, the
titleattribute is considered bad practice now.See #3083583: [META] Discourage non-inclusive use of the HTML title attribute for a bit of background. This issue was created by @andrewmacpherson who is a Drupal accessibility maintainer.
Comment #8
damienmckennaI didn't know about that, thanks for the insights!
Comment #9
damienmckennaWe can do a separate issue for updating the codebase(s).
Comment #11
damienmckennaCommitted. Thank you.
I'll do a separate issue to backport the change to D7.