From 33eff43313ce363b48e034e8c91476876efab3df Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sat, 7 Dec 2019 21:01:21 +0000 Subject: [PATCH] Change the (edited) link to an AccessibleButton for a11y Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/messages/TextualBody.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index 2680c13512..6e06a6e7b5 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -401,13 +401,18 @@ module.exports = createReactClass({ label={_t("Edited at %(date)s. Click to view edits.", {date: dateString})} />; } + + const AccessibleButton = sdk.getComponent('elements.AccessibleButton'); return ( -
{editedTooltip}{`(${_t("edited")})`}
+ > + { editedTooltip }{`(${_t("edited")})`} + ); },