Resonance Logo

Avatar

A visual representation of a user or entity, displayed as an image or initials fallback with proper accessible labelling.

Demo

Review the avatar variants shown below. Observe how each is labelled, how the fallback displays when an image is unavailable, and whether an avatar used purely for decoration communicates anything to assistive technology.

Avatar with adjacent name (decorative image)

Maria Johnson

Standalone avatar (informative image)

Alex Chen

Initials fallback

Avatar inside a link

What to Observe

Anatomy

[Anatomy image placeholder — will be added when assets are available]

  1. Avatar Container — the wrapping element that establishes the circular or shaped boundary and handles overflow clipping
  2. Image — the photo or illustration representing the user or entity; must carry a descriptive alternative text when meaningful
  3. Initials Fallback — text-based content displayed when the image fails to load or is unavailable; conveys the same identity as the image
  4. Status Indicator — an optional badge or dot overlaid on the avatar to show presence or activity status, which must have a text equivalent

Accessibility Behavior

Common Mistakes

Why This Matters

Avatars appear throughout social and collaborative interfaces — comment threads, user lists, profile menus — and are often treated as purely decorative. When an avatar is the only visual cue identifying who posted something or who is online, its information matters. Screen reader users relying on alternative text, and keyboard users activating avatar links, need the same contextual information that sighted users receive at a glance. Correct labelling ensures the identity information embedded in avatars is available to everyone.

Accessibility Validation

This component is validated against internal accessibility criteria aligned with WCAG standards, using our internally developed system, Resonance Specs.

To learn more, please contact us.

Code

Reference Implementation