From 23bce774d7e92ab545eb89bf3cd0be5891e414be Mon Sep 17 00:00:00 2001 From: Isaac Janzen <50783505+janzenisaac@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:11:47 -0700 Subject: [PATCH] DEV: Update user dropdown aria-label (#25845) --- .../app/components/glimmer-header/user-dropdown.gjs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/glimmer-header/user-dropdown.gjs b/app/assets/javascripts/discourse/app/components/glimmer-header/user-dropdown.gjs index c87d17575ed..25b8f0b71cf 100644 --- a/app/assets/javascripts/discourse/app/components/glimmer-header/user-dropdown.gjs +++ b/app/assets/javascripts/discourse/app/components/glimmer-header/user-dropdown.gjs @@ -1,5 +1,4 @@ import Component from "@glimmer/component"; -import { concat } from "@ember/helper"; import { on } from "@ember/modifier"; import { action } from "@ember/object"; import { inject as service } from "@ember/service"; @@ -39,9 +38,9 @@ export default class UserDropdown extends Component { aria-haspopup="true" aria-expanded={{@active}} href={{this.currentUser.path}} - aria-label={{concat - (or this.currentUser.name this.currentUser.username) - (i18n "user.account_possessive") + aria-label={{i18n + "user.account_possessive" + name=(or this.currentUser.name this.currentUser.username) }} data-auto-route="true" {{on "click" this.click}}