Open koeaw opened 4 hours ago
The
link
attributes for the icon destinations in the footer should get removed/replaced withalt
attributes on the images.
Can you post an example? I don't know what you are referring to
Can you post an example? I don't know what you are referring to
Sorry, meant to say title
attributes! Updated the issue description.
Oke, could you explain why it is preferable to have alt
attributes instead of title
attributes?
Oke, could you explain why it is preferable to have
alt
attributes instead oftitle
attributes?
The HTML specs on title
:
Relying on the
title
attribute is currently discouraged as many user agents do not expose the attribute in an accessible manner as required by this specification (e.g., requiring a pointing device such as a mouse to cause a tooltip to appear, which excludes keyboard-only users and touch-only users, such as anyone with a modern phone or tablet).
The HTML specs on alt
in the context of links containing nothing but an image:
When an
a
element that creates a hyperlink, or abutton
element, has no textual content but contains one or more images, thealt
attributes must contain text that together convey the purpose of the link or button.
Useful resources which link to more useful resources: https://www.a11yproject.com/posts/title-attributes/ https://www.scottohara.me/blog/2019/05/22/contextual-images-svgs-and-a11y.html
The
title
attributes on the icon links in the footer should get removed/replaced withalt
attributes on the images.That aside, I'm experiencing weird behaviour when hovering the icons: the link destinations aren't shown consistently. In FF (ESR), I thought they randomly disappeared, then realised they flip between the bottom left corner of the browser (default) and the bottom right. In Chrome, they drop "under" the visible browser window. Additionally, the space between the icons seems to get underlined on hover (like text would by default).
A cursory inspection revealed the links themselves aren't the same size as the icons they surround; I'm assuming this contributes to or is the source of the issue.