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:
parent
d7276850a2
commit
233f876bbb
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user