EN, Change language
Englishالعربية
OM-043

Provide meaningful alternative text when the avatar uses an image.

The requirement (from the design system site)

Provide meaningful alternative text when the avatar uses an image.

Why it matters to users

A screen reader announces an avatar with no alt text as an unlabelled image, or reads out its file name. A blind user then cannot tell whose account they are in or who sent a message.

How to fix it

Give each avatar image alt text with the person's name, for example through the alt attribute of gup-avatar, or leave alt empty when the name is already written next to it. Then scan again.

How we measure it

Avatar images (gup-avatar[src] alt attribute, or img inside avatar containers) have non-empty alt that is not a file name or the word avatar/image, unless the person's name is adjacent text (then alt="" is acceptable).

The rule on the design system site

Avatar image alt text · Oman OM-043 | xfix