refactor: popover a11y aria attributes
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user