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

Commit b089f3d

Browse files
authored
Merge pull request #5585 from ndarilek/label-base-avatar
Label unlabeled avatar button in event panel
2 parents 7c3a7b5 + e5d5e1c commit b089f3d

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
@@ -2437,6 +2437,7 @@
24372437
"Revoke permissions": "Revoke permissions",
24382438
"Move left": "Move left",
24392439
"Move right": "Move right",
2440+
"Avatar": "Avatar",
24402441
"This room is public": "This room is public",
24412442
"Away": "Away",
24422443
"User Status": "User Status",

0 commit comments

Comments
 (0)