From 4e5cf1b72068c5efd37c6064b9eb8dfcd2e2841c Mon Sep 17 00:00:00 2001 From: Florian Duros <florian.duros@ormaz.fr> Date: Thu, 10 Oct 2024 09:30:08 +0200 Subject: [PATCH] Add aria-label to e2e icon (#136) --- src/components/views/rooms/EventTile.tsx | 2 +- src/i18n/strings/en_EN.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 81791bdcce..0089773dc8 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -1519,7 +1519,7 @@ class E2ePadlock extends React.Component<IE2ePadlockProps> { // https://github.com/element-hq/compound/issues/294 return ( <Tooltip label={this.props.title} isTriggerInteractive={true}> - <div className={classes} tabIndex={0} /> + <div className={classes} tabIndex={0} aria-label={_t("timeline|e2e_state")} /> </Tooltip> ); } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 8b43b71ac1..74265c1939 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -3272,6 +3272,7 @@ "download_action_downloading": "Downloading", "download_failed": "Download failed", "download_failed_description": "An error occurred while downloading this file", + "e2e_state": "State of the end-to-end encryption", "edits": { "tooltip_label": "Edited at %(date)s. Click to view edits.", "tooltip_sub": "Click to view edits",