refactor: fix accessibility issue with note list items (#2338)

This commit is contained in:
Shane Duffy
2023-06-23 13:31:05 -07:00
committed by GitHub
parent c6d30976e0
commit 1ff34cf1a2
2 changed files with 2 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ const FileListItemCard: FunctionComponent<DisplayableListItemProps<FileItem>> =
return (
<div
ref={listItemRef}
role="button"
className={classNames(
'content-list-item flex w-full cursor-pointer items-stretch text-text',
selected && 'selected border-l-2px border-solid border-info',

View File

@@ -103,6 +103,7 @@ const NoteListItem: FunctionComponent<DisplayableListItemProps<SNNote>> = ({
return (
<div
ref={listItemRef}
role="button"
className={classNames(
'content-list-item flex w-full cursor-pointer items-stretch text-text',
selected && `selected border-l-2 border-solid border-accessory-tint-${tint}`,