1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-12-26 16:58:00 +01:00

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

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