Replace left pane button aria-label

This commit is contained in:
Josh Perez 2023-04-21 17:23:30 -04:00 committed by GitHub
parent 5d42997e79
commit 0bf351ba09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 15 deletions

View file

@ -373,24 +373,21 @@ export function ConversationList({
]);
const { badges, title, unreadCount, lastMessage } = itemProps;
result = (
<div
aria-label={i18n('icu:ConversationList__aria-label', {
<ConversationListItem
{...itemProps}
buttonAriaLabel={i18n('icu:ConversationList__aria-label', {
lastMessage:
get(lastMessage, 'text') ||
i18n('icu:ConversationList__last-message-undefined'),
title,
unreadCount,
})}
>
<ConversationListItem
{...itemProps}
key={key}
badge={getPreferredBadge(badges)}
onClick={onSelectConversation}
i18n={i18n}
theme={theme}
/>
</div>
key={key}
badge={getPreferredBadge(badges)}
onClick={onSelectConversation}
i18n={i18n}
theme={theme}
/>
);
break;
}