Skip to content

Commit e084199

Browse files
vladislavkeblyshbradenmacdonald
authored andcommitted
feat: added laber for header dropdown btn
1 parent 90f2e25 commit e084199

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/learning-header/AuthenticatedUserDropdown.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}

src/learning-header/messages.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

4146
export default messages;

0 commit comments

Comments
 (0)