News for hackers. Stuff that matters.
Re:I made a smart watch from scratch by StavrosK on Tuesday April 30, 2019 @01:22PM (#19789946)
Ah, thank you, but removing the alt-text would be bad for accessibility. It is meant for visually impaired people, after all. Maybe setting the title would fix this, I'll look into it, thank you!
Re:I made a smart watch from scratch by laken on Wednesday May 01, 2019 @12:46PM (#19798962)
The alt-text "The User's Avatar" is worse for accessibility than an _empty_ alt-text (not no alt-text, empty alt text).

Alt-text is to describe non-decorative images that add meaning. The parent commenter is correct on how you would implement accessible alt-text here.

In the top, your avatar is meant to to represent a link to your profile. That needs an alt attribute. The alt attribute should be the current user's name, "Your Profile", or something similar. When signed out, something like "Sign In" might work better.

In the featured projects, the avatar that's there is decorative. The litmus test for decorative images is that if the image wasn't there, would you be able to easily figure out what to do? The image is purely decorative, as the creator's name is adjacent to it. There you would add an empty alt tag, like `alt=""` (not the same as no alt text), as screen-readers know to ignore that image then.

Re:I made a smart watch from scratch by StavrosK on Wednesday May 01, 2019 @04:36PM (#19801375)
I see, thank you, I'll change them then.
Re:I made a smart watch from scratch by laken on Thursday May 02, 2019 @10:41AM (#19808383)
No problem! Alt text is super confusing if you don't do it often, and there's a lot of untrue assumptions out there about it :)

I highly recommend this page by WebAIM on it: https://webaim.org/techniques/alttext/

Re:I made a smart watch from scratch by StavrosK on Thursday May 02, 2019 @10:54AM (#19808515)
This is extremely useful, thank you!