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 }) => {
3737
3838 return (
3939 < Dropdown className = "user-dropdown ml-3" >
40- < Dropdown . Toggle variant = "outline-primary" >
40+ < Dropdown . Toggle variant = "outline-primary" aria-label = { intl . formatMessage ( messages . userOptionsDropdownLabel ) } >
4141 < FontAwesomeIcon icon = { faUserCircle } className = "d-md-none" size = "lg" />
4242 < span data-hj-suppress className = "d-none d-md-inline" >
4343 { username }
Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ const messages = defineMessages({
3636 defaultMessage : 'Sign Out' ,
3737 description : 'The label for the user menu Sign Out action.' ,
3838 } ,
39+ userOptionsDropdownLabel : {
40+ id : 'header.menu.aria-label' ,
41+ defaultMessage : 'User Options' ,
42+ description : 'The aria-label for the user options dropdown.' ,
43+ } ,
3944} ) ;
4045
4146export default messages ;
You can’t perform that action at this time.
0 commit comments