Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

alt tag on avatars removed #74

Open
recoilme opened this issue Aug 14, 2018 · 7 comments
Open

alt tag on avatars removed #74

recoilme opened this issue Aug 14, 2018 · 7 comments

Comments

@recoilme
Copy link
Owner

@Flameborn i removed alt tag on avatars images - it ruins interface
is it critical?

@Flameborn
Copy link
Contributor

No, it is not as important. I think the only time the alt tag can show up is if the image is empty.

@Flameborn
Copy link
Contributor

More info about alt attributes here https://moz.com/learn/seo/alt-text

@recoilme
Copy link
Owner Author

thanks, we must hide empty images - it's bug

@Flameborn
Copy link
Contributor

Sorry, I was under the assumption that empty images were not shown. This should be an easy fix.

@uvNikita
Copy link

Note that alt attribute of the image tag is important for web accessibility: https://webaim.org/techniques/alttext. The content of this attribute is read out loud when an assistive technology like screen reader is used. E.g. without this text, a screen reader will simply read non-descriptive "image".

When it comes to the article images, the best would be to have a detailed description of the image content (e.g. "A woman standing in front of the tree with the hands covering her face."), but having at least indication that the image belongs to an article, like it was implemented before the change (d24fb35), would be better than nothing IMHO.

@Flameborn
Copy link
Contributor

Flameborn commented Aug 14, 2018

You are right, however, unfortunately, this is outside of Typegram's control, unless author avatars are automatically generated.

At the moment, I believe users can upload their own image, which could be anything. It should be the user's responsibility to tag their own image properly.

We should definitely indicate that there is an image on the page, via the alt attribute, but I think the issue here was that without an image, the alt text showed up.

The solution would be to revert the attribute removal and only display the link if the .Image field is not empty.

On a sidenote, when the image is displayed, there are two links pointing to an author's page, one image, and one text. Is this necessary?

@recoilme
Copy link
Owner Author

i have an issue for autogenerated avatars: #32
i think it closes 2 issue with one shot

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

No branches or pull requests

3 participants