Skip to content

Commit c1c3ed6

Browse files
authored
Slightly better presentation of read receipts to screen reader users (#8662)
1 parent e1e87ac commit c1c3ed6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/views/rooms/ReadReceiptGroup.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,12 @@ export function ReadReceiptGroup(
199199

200200
return (
201201
<div className="mx_EventTile_msgOption">
202-
<div className="mx_ReadReceiptGroup">
202+
<div className="mx_ReadReceiptGroup" role="group" aria-label={_t("Read receipts")}>
203203
<AccessibleButton
204204
className="mx_ReadReceiptGroup_button"
205205
inputRef={button}
206+
aria-label={tooltipText}
207+
aria-haspopup="true"
206208
onClick={openMenu}
207209
onMouseOver={showTooltip}
208210
onMouseLeave={hideTooltip}

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,7 @@
17651765
"%(members)s and %(last)s": "%(members)s and %(last)s",
17661766
"Seen by %(count)s people|other": "Seen by %(count)s people",
17671767
"Seen by %(count)s people|one": "Seen by %(count)s person",
1768+
"Read receipts": "Read receipts",
17681769
"Recently viewed": "Recently viewed",
17691770
"Replying": "Replying",
17701771
"Room %(name)s": "Room %(name)s",

0 commit comments

Comments
 (0)