Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit e5d5e1c

Browse files
committed
Label unlabeled avatar button in event panel.
Signed-off-by: Nolan Darilek <[email protected]>
1 parent fe71106 commit e5d5e1c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/components/views/avatars/BaseAvatar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import MatrixClientContext from "../../../contexts/MatrixClientContext";
2626
import {useEventEmitter} from "../../../hooks/useEventEmitter";
2727
import {toPx} from "../../../utils/units";
2828
import {ResizeMethod} from "../../../Avatar";
29+
import { _t } from '../../../languageHandler';
2930

3031
interface IProps {
3132
name: string; // The name (first initial used as default)
@@ -140,6 +141,7 @@ const BaseAvatar = (props: IProps) => {
140141
if (onClick) {
141142
return (
142143
<AccessibleButton
144+
aria-label={_t("Avatar")}
143145
{...otherProps}
144146
element="span"
145147
className={classNames("mx_BaseAvatar", className)}

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,6 +2430,7 @@
24302430
"Revoke permissions": "Revoke permissions",
24312431
"Move left": "Move left",
24322432
"Move right": "Move right",
2433+
"Avatar": "Avatar",
24332434
"This room is public": "This room is public",
24342435
"Away": "Away",
24352436
"User Status": "User Status",

0 commit comments

Comments
 (0)