Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Social media standard image accessibility tag with Alt instead of aria labels #603

Closed
bit-pro-iew-eui opened this issue Nov 29, 2017 · 2 comments
Assignees
Milestone

Comments

@bit-pro-iew-eui
Copy link
Contributor

Please use alt-attribute instead of aria-label to describe the social icon-image.

Label: Share to [social media name here]

image

@gillerr
Copy link
Contributor

gillerr commented Dec 5, 2017

Social sharing icons are applied as a CSS background of an a tag and not as an img tag.
alt attribute can only be applied to img tag and will be ignored on other tags.
The aria-label is thus a correct solution.
title attribute could also be used, but no all screen readers will read it.

@bit-pro-iew-eui bit-pro-iew-eui modified the milestones: 3.3, 3.2 Dec 7, 2017
@bit-pro-iew-eui
Copy link
Contributor Author

Guideline ok.
Implementation in www.eak.admin.ch was done with img, the alt-tag is empty there.
See https://www.eak.admin.ch/eak/de/home/Firmen/Anschluss.html

image
Closing issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants