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

@@ -77,7 +77,7 @@ const ChangeEditorButton: FunctionComponent<Props> = ({ noteViewController, onCl
title="Change note type"
togglePopover={toggleMenu}
disableClickOutside={isClickOutsideDisabled}
anchorElement={buttonRef.current}
anchorElement={buttonRef}
open={isOpen}
className="pt-2 md:pt-0"
>

View File

@@ -23,7 +23,7 @@ const ChangeMultipleButton = ({ application, notesController }: Props) => {
title="Change note type"
togglePopover={toggleMenu}
disableClickOutside={disableClickOutside}
anchorElement={changeButtonRef.current}
anchorElement={changeButtonRef}
open={isChangeMenuOpen}
className="pt-2 md:pt-0"
>