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

@@ -36,7 +36,7 @@ const AccountMenuButton = ({ hasError, controller, mainApplicationGroup, onClick
</StyledTooltip>
<Popover
title="Account"
anchorElement={buttonRef.current}
anchorElement={buttonRef}
open={isOpen}
togglePopover={toggleMenu}
side="top"

View File

@@ -51,7 +51,7 @@ const QuickSettingsButton = ({ application, isMobileNavigation = false }: Props)
<Popover
title="Quick settings"
togglePopover={toggleMenu}
anchorElement={buttonRef.current}
anchorElement={buttonRef}
open={isOpen}
side="top"
align="start"

View File

@@ -56,7 +56,7 @@ const VaultSelectionButton = ({ isMobileNavigation = false }: { isMobileNavigati
<Popover
title="Vault options"
togglePopover={toggleMenu}
anchorElement={buttonRef.current}
anchorElement={buttonRef}
open={isOpen}
side="top"
align="start"