Skip to content

A platform for community discussion. Free, open, simple.

UX: header avatar > change to aria-label (#25038)

chapoi3a207185264a
diff --git a/app/assets/javascripts/discourse/app/widgets/header.js b/app/assets/javascripts/discourse/app/widgets/header.js
index 40adcf91a8c..0657c9055fd 100644
--- a/app/assets/javascripts/discourse/app/widgets/header.js
+++ b/app/assets/javascripts/discourse/app/widgets/header.js
@@ -176,7 +176,9 @@ createWidget(
"aria-haspopup": true,
"aria-expanded": attrs.active,
href: attrs.user.path,
- title: attrs.user.name || attrs.user.username,
+ "aria-label":
+ (attrs.user.name || attrs.user.username) +
+ I18n.t("user.account_possessive"),
"data-auto-route": true,
},
},
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 9c5d318a31a..63124c40c6e 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -1089,6 +1089,7 @@ en:
said: "%{username}:"
profile: "Profile"
profile_possessive: "%{username}'s profile"
+ account_possessive: "'s account"
mute: "Mute"
edit: "Edit Preferences"
download_archive: