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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user