Vivid API

Avatar

Avatars are used to represent a user or a system entity. They can be used to represent a person, a group of people, or an object.

This component was tested and signed off by Applause (external accessibility specialists).

Implementation

  • Label interactive avatars
    • Always provide an aria-label when the avatar is a link (href) or a button (clickable).
    • Use clear, descriptive text (e.g. “Profile avatar”, “User profile picture”).
  • Label icons in slots
  • Mark decorative avatars as presentation
    • If the avatar is purely decorative and not interactive, use role="presentation" so it’s ignored by assistive technologies.