Replace left pane button aria-label
This commit is contained in:
parent
5d42997e79
commit
0bf351ba09
3 changed files with 20 additions and 15 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue