mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[PM-2870] [PM-2865] Accessibility updates: add labels to buttons & form checkboxes (#8358)
* organization-options: add area-labels to links * vault-cipher-row: add aria-label to input checkbox * vault-collection-row: add aria-label to collection item * add internationalizatino to org options menu * add internationlization to checkbox aria-labels for vault and collection items * organization-options-component: remove added aria-lables to buttons inside of toggle --------- Co-authored-by: Merissa Weinstein <merissaweinstein@merissas-mbp-2.lan>
This commit is contained in:
committed by
GitHub
parent
8cb16fb406
commit
6cafb1d28f
@@ -6,6 +6,7 @@
|
|||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
[checked]="checked"
|
[checked]="checked"
|
||||||
(change)="$event ? this.checkedToggled.next() : null"
|
(change)="$event ? this.checkedToggled.next() : null"
|
||||||
|
[attr.aria-label]="'vaultItemSelect' | i18n"
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
<td bitCell [ngClass]="RowHeightClass" class="tw-min-w-fit">
|
<td bitCell [ngClass]="RowHeightClass" class="tw-min-w-fit">
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
[disabled]="disabled"
|
[disabled]="disabled"
|
||||||
[checked]="checked"
|
[checked]="checked"
|
||||||
(change)="$event ? this.checkedToggled.next() : null"
|
(change)="$event ? this.checkedToggled.next() : null"
|
||||||
|
[attr.aria-label]="'collectionItemSelect' | i18n"
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
<td bitCell [ngClass]="RowHeightClass" class="tw-min-w-fit">
|
<td bitCell [ngClass]="RowHeightClass" class="tw-min-w-fit">
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
<ng-container *ngIf="!hideMenu">
|
<ng-container *ngIf="!hideMenu">
|
||||||
<button type="button" [bitMenuTriggerFor]="optionsMenu" class="filter-options-icon">
|
<button
|
||||||
|
type="button"
|
||||||
|
[bitMenuTriggerFor]="optionsMenu"
|
||||||
|
class="filter-options-icon"
|
||||||
|
[attr.aria-label]="'organizationOptionsMenu' | i18n"
|
||||||
|
>
|
||||||
<i class="bwi bwi-ellipsis-v" aria-hidden="true"></i>
|
<i class="bwi bwi-ellipsis-v" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
<bit-menu class="filter-organization-options" #optionsMenu>
|
<bit-menu class="filter-organization-options" #optionsMenu>
|
||||||
|
|||||||
@@ -8040,5 +8040,14 @@
|
|||||||
},
|
},
|
||||||
"collectionAdminConsoleManaged": {
|
"collectionAdminConsoleManaged": {
|
||||||
"message": "This collection is only accessible from the admin console"
|
"message": "This collection is only accessible from the admin console"
|
||||||
|
},
|
||||||
|
"organizationOptionsMenu": {
|
||||||
|
"message": "Toggle Organization Menu"
|
||||||
|
},
|
||||||
|
"vaultItemSelect": {
|
||||||
|
"message": "Select vault item"
|
||||||
|
},
|
||||||
|
"collectionItemSelect": {
|
||||||
|
"message": "Select collection item"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user