1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

Add aria-pressed attribute to all toggleVisibility buttons

Closes https://github.com/bitwarden/browser/issues/2228
This commit is contained in:
Patrick H. Lauke
2021-12-18 20:22:11 +00:00
parent df72485236
commit 6e050349e4
12 changed files with 19 additions and 19 deletions

View File

@@ -29,7 +29,7 @@
<div class="action-buttons">
<button type="button" class="row-btn" appStopClick appA11yTitle="{{'toggleVisibility' | i18n}}"
*ngIf="field.type === fieldType.Hidden && cipher.viewPassword"
(click)="toggleFieldValue(field)">
(click)="toggleFieldValue(field)" [attr.aria-pressed]="field.showValue">
<i class="fa fa-lg" aria-hidden="true"
[ngClass]="{'fa-eye': !field.showValue, 'fa-eye-slash': field.showValue}"></i>
</button>