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

@ -33,6 +33,7 @@ const CHECKBOX_CLASS_NAME = `${BASE_CLASS_NAME}__checkbox`;
export const SPINNER_CLASS_NAME = `${BASE_CLASS_NAME}__spinner`;
type PropsType = {
buttonAriaLabel?: string;
checked?: boolean;
conversationType: 'group' | 'direct';
disabled?: boolean;
@ -79,6 +80,7 @@ export const BaseConversationListItem: FunctionComponent<PropsType> =
acceptedMessageRequest,
avatarPath,
avatarSize,
buttonAriaLabel,
checked,
color,
conversationType,
@ -250,9 +252,12 @@ export const BaseConversationListItem: FunctionComponent<PropsType> =
if (onClick) {
return (
<button
aria-label={i18n('icu:BaseConversationListItem__aria-label', {
title,
})}
aria-label={
buttonAriaLabel ||
i18n('icu:BaseConversationListItem__aria-label', {
title,
})
}
className={classNames(
commonClassNames,
`${BASE_CLASS_NAME}--is-button`