From 3fe6b56702005da17880abaeb8c0304928b21631 Mon Sep 17 00:00:00 2001 From: Davide Iadeluca Date: Fri, 3 Oct 2025 13:34:22 +0200 Subject: [PATCH] chore(core): improve `a11y` of avatar with no `avatarUrl` --- framework/core/js/src/common/components/Avatar.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/core/js/src/common/components/Avatar.tsx b/framework/core/js/src/common/components/Avatar.tsx index 6f66d5314d..0e186f18e8 100644 --- a/framework/core/js/src/common/components/Avatar.tsx +++ b/framework/core/js/src/common/components/Avatar.tsx @@ -49,6 +49,10 @@ export default class Avatar 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 ,