Fix: add missing tooltip and aria-label to lock icon next to composer (#30623)
* fix: add missing tooltip and aria-label to lock icon next to composer * test: update snapshot
This commit is contained in:
@@ -531,12 +531,15 @@ export class MessageComposer extends React.Component<IProps, IState> {
|
||||
if (!this.props.e2eStatus) {
|
||||
leftIcon = (
|
||||
<div className="mx_MessageComposer_e2eIconWrapper">
|
||||
<LockOffIcon
|
||||
width={12}
|
||||
height={12}
|
||||
color="var(--cpd-color-icon-info-primary)"
|
||||
className="mx_E2EIcon mx_MessageComposer_e2eIcon"
|
||||
/>
|
||||
<Tooltip label={_t("composer|room_unencrypted")}>
|
||||
<LockOffIcon
|
||||
aria-label={_t("composer|room_unencrypted")}
|
||||
width={12}
|
||||
height={12}
|
||||
color="var(--cpd-color-icon-info-primary)"
|
||||
className="mx_E2EIcon mx_MessageComposer_e2eIcon"
|
||||
/>
|
||||
</Tooltip>
|
||||
</div>
|
||||
);
|
||||
} else if (this.props.e2eStatus !== E2EStatus.Normal) {
|
||||
|
||||
@@ -654,6 +654,7 @@
|
||||
"poll_button_no_perms_description": "You do not have permission to start polls in this room.",
|
||||
"poll_button_no_perms_title": "Permission Required",
|
||||
"replying_title": "Replying",
|
||||
"room_unencrypted": "Messages in this room are not end-to-end encrypted",
|
||||
"room_upgraded_link": "The conversation continues here.",
|
||||
"room_upgraded_notice": "This room has been replaced and is no longer active.",
|
||||
"send_button_title": "Send message",
|
||||
|
||||
Reference in New Issue
Block a user