From b44734c73e9a93453e0206cb769a4cb526bfb37f Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Fri, 1 Dec 2023 12:24:30 +0100 Subject: [PATCH] Override aria-label for whole tile --- src/components/views/rooms/EventTile.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index cb414173387e..026f9aad618b 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -1210,6 +1210,7 @@ export class UnwrappedEventTile extends React.Component "ref": this.ref, "className": classes, "aria-live": ariaLive, + "aria-label": this.props.mxEvent.sender.name + '. ' + (this.props.mxEvent.clearEvent || this.props.mxEvent.event).content.body, "aria-atomic": true, "data-scroll-tokens": scrollToken, "data-has-reply": !!replyChain, @@ -1399,6 +1400,7 @@ export class UnwrappedEventTile extends React.Component "className": classes, "tabIndex": -1, "aria-live": ariaLive, + "aria-label": this.props.mxEvent.sender.name + '. ' + (this.props.mxEvent.clearEvent || this.props.mxEvent.event).content.body, "aria-atomic": "true", "data-scroll-tokens": scrollToken, "data-layout": this.props.layout,