Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions framework/core/js/src/common/components/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export default class Avatar<CustomAttrs extends IAvatarAttrs = IAvatarAttrs> ext

content = username.charAt(0).toUpperCase();
attrs.style = !window.testing && { '--avatar-bg': user.color() };

delete attrs.loading;
attrs.role = 'img';
attrs['aria-label'] = username;
}

// Note: We intentionally do NOT set `alt` when rendering the fallback <span>,
Expand Down
Loading