Accessibility fixes for account switcher menu (#1373)

This commit is contained in:
Robyn MacCallum 2022-02-24 14:11:54 -05:00 committed by GitHub
parent d7276850a2
commit 233f876bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -5,8 +5,8 @@
#trigger="cdkOverlayOrigin" #trigger="cdkOverlayOrigin"
[hidden]="!showSwitcher" [hidden]="!showSwitcher"
aria-haspopup="menu" aria-haspopup="menu"
aria-expanded="isOpen"
aria-controls="cdk-overlay-container" aria-controls="cdk-overlay-container"
[attr.aria-expanded]="isOpen"
> >
<ng-container *ngIf="activeAccountEmail != null; else noActiveAccount"> <ng-container *ngIf="activeAccountEmail != null; else noActiveAccount">
<app-avatar <app-avatar
@ -46,6 +46,8 @@
[@transformPanel]="'open'" [@transformPanel]="'open'"
cdkTrapFocus cdkTrapFocus
cdkTrapFocusAutoCapture cdkTrapFocusAutoCapture
role="dialog"
aria-modal="true"
> >
<div class="accounts" *ngIf="numberOfAccounts > 0"> <div class="accounts" *ngIf="numberOfAccounts > 0">
<button <button