File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const AuthenticatedUserDropdown = ({ intl, username }) => {
37
37
38
38
return (
39
39
< Dropdown className = "user-dropdown ml-3" >
40
- < Dropdown . Toggle variant = "outline-primary" >
40
+ < Dropdown . Toggle variant = "outline-primary" aria-label = { intl . formatMessage ( messages . userOptionsDropdownLabel ) } >
41
41
< FontAwesomeIcon icon = { faUserCircle } className = "d-md-none" size = "lg" />
42
42
< span data-hj-suppress className = "d-none d-md-inline" >
43
43
{ username }
Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ const messages = defineMessages({
36
36
defaultMessage : 'Sign Out' ,
37
37
description : 'The label for the user menu Sign Out action.' ,
38
38
} ,
39
+ userOptionsDropdownLabel : {
40
+ id : 'header.menu.aria-label' ,
41
+ defaultMessage : 'User Options' ,
42
+ description : 'The aria-label for the user options dropdown.' ,
43
+ } ,
39
44
} ) ;
40
45
41
46
export default messages ;
You can’t perform that action at this time.
0 commit comments