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 AddTagOption: FunctionComponent<Props> = ({
<Popover
title="Add tag"
togglePopover={toggleMenu}
anchorElement={buttonRef.current}
anchorElement={buttonRef}
open={isOpen}
side="right"
align="start"

View File

@@ -52,7 +52,7 @@ const ChangeEditorOption: FunctionComponent<ChangeEditorOptionProps> = ({ applic
<Popover
title="Change note type"
align="start"
anchorElement={buttonRef.current}
anchorElement={buttonRef}
className="pt-2 md:pt-0"
open={isOpen}
side="right"

View File

@@ -50,7 +50,7 @@ const ListedActionsOption: FunctionComponent<Props> = ({ application, note, icon
<Popover
title="Listed"
togglePopover={toggleMenu}
anchorElement={buttonRef.current}
anchorElement={buttonRef}
open={isOpen}
side="right"
align="end"

View File

@@ -35,7 +35,7 @@ const NotesOptionsPanel = ({ notesController, onClickPreprocessing }: Props) =>
title="Note options"
disableClickOutside={disableClickOutside}
togglePopover={toggleMenu}
anchorElement={buttonRef.current}
anchorElement={buttonRef}
open={isOpen}
className="select-none pt-2"
>