If you answer yes, we store and analyse information that helps us improve the website. You can change your choice at any time at the bottom of the page. More about what we store and why.

We also store necessary information that cannot be opted out of. This makes the website work and keeps it secure.

Skip to main content

What are you looking for?

Try searching for…

Components

Avatar

Avatar displays an image, initials, or icon for a person, entity, or profile.

What you need to check

Informative avatar must have an accessible name.

The accessible name can be provided using aria-label. If multiple avatars are displayed together, each name must be unique.

WCAG: 1.3.1 Info and relationships


Decorative avatar must be hidden from screen readers.

This applies when the avatar is purely decorative and does not convey information. Example: If an avatar is shown inside a button with the text “Ola Nordmann”, the avatar can be hidden because the name already identifies the person.

WCAG: 1.1.1 Non-text content


Clickable avatar must have an accessible name.

The accessible name can be provided using aria-label. Example: “Profile for Ola Nordmann”. Avoid: just initials or “Avatar”.

WCAG: 4.1.2 Name, role, value

Edit this page on github.com (opens in a new tab)