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

@@ -32,7 +32,7 @@ const LinkedItemsButton = ({ linkingController, onClickPreprocessing }: Props) =
<Popover
title="Linked items"
togglePopover={toggleMenu}
anchorElement={buttonRef.current}
anchorElement={buttonRef}
open={isLinkingPanelOpen}
className="pb-2"
>

View File

@@ -101,7 +101,7 @@ export const LinkedItemsSectionItem = ({
title="Options"
open={isMenuOpen}
togglePopover={toggleMenu}
anchorElement={menuButtonRef.current}
anchorElement={menuButtonRef}
side="bottom"
align="center"
className="py-2"