Use aria-expanded for avatar popup menu

This commit is contained in:
Josh Perez 2023-05-04 19:41:17 -04:00
parent b619d2ee5c
commit 073b434004
2 changed files with 19 additions and 3 deletions

View file

@ -121,6 +121,8 @@ export function MainHeader({
ref={setTargetElement}
>
<Avatar
aria-expanded={showAvatarPopup}
aria-owns="MainHeader__AvatarPopup"
acceptedMessageRequest
avatarPath={avatarPath}
badge={badge}
@ -149,6 +151,7 @@ export function MainHeader({
portalElement != null &&
createPortal(
<div
id="MainHeader__AvatarPopup"
ref={setPopperElement}
style={{ ...popper.styles.popper, zIndex: 10 }}
{...popper.attributes.popper}