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:
Florian Duros
2025-08-26 17:29:41 +02:00
committed by GitHub
parent 14d16364db
commit ea5e525133
3 changed files with 261 additions and 251 deletions

View File

@@ -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) {