refactor: popover a11y aria attributes

This commit is contained in:
Aman Harwara
2023-08-14 14:42:33 +05:30
parent e1c5d52dbe
commit 4865e3ba28
31 changed files with 110 additions and 88 deletions

View File

@@ -67,7 +67,7 @@ const ContextMenuCell = ({ items }: { items: DecryptedItemInterface[] }) => {
<Popover
title="File options"
open={contextMenuVisible}
anchorElement={anchorElementRef.current}
anchorElement={anchorElementRef}
togglePopover={() => {
setContextMenuVisible(false)
}}
@@ -120,7 +120,7 @@ const ItemLinksCell = ({ item }: { item: DecryptedItemInterface }) => {
<Popover
title="Linked items"
open={contextMenuVisible}
anchorElement={anchorElementRef.current}
anchorElement={anchorElementRef}
togglePopover={() => {
setContextMenuVisible(false)
}}