-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM-8615] Filters Accessibility tweaks (#9538)
* wrap filters in a role="toolbar" & add aria label * announce deactivated org message when presented to the user
- Loading branch information
1 parent
1763324
commit 82f8641
Showing
3 changed files
with
54 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 38 additions & 36 deletions
74
.../src/vault/popup/components/vault-v2/vault-list-filters/vault-list-filters.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,41 @@ | ||
<form [formGroup]="filterForm" class="tw-flex tw-flex-wrap tw-gap-2 tw-mb-6 tw-mt-2"> | ||
<ng-container *ngIf="organizations$ | async as organizations"> | ||
<div role="toolbar" [ariaLabel]="'filters' | i18n"> | ||
<form [formGroup]="filterForm" class="tw-flex tw-flex-wrap tw-gap-2 tw-mb-6 tw-mt-2"> | ||
<ng-container *ngIf="organizations$ | async as organizations"> | ||
<bit-chip-select | ||
*ngIf="organizations.length" | ||
formControlName="organization" | ||
placeholderIcon="bwi-vault" | ||
[placeholderText]="'vault' | i18n" | ||
[options]="organizations" | ||
> | ||
</bit-chip-select> | ||
</ng-container> | ||
<ng-container *ngIf="collections$ | async as collections"> | ||
<bit-chip-select | ||
*ngIf="collections.length" | ||
formControlName="collection" | ||
placeholderIcon="bwi-collection" | ||
[placeholderText]="'collection' | i18n" | ||
[options]="collections" | ||
> | ||
</bit-chip-select> | ||
</ng-container> | ||
<ng-container *ngIf="folders$ | async as folders"> | ||
<bit-chip-select | ||
*ngIf="folders.length" | ||
placeholderIcon="bwi-folder" | ||
formControlName="folder" | ||
[placeholderText]="'folder' | i18n" | ||
[options]="folders" | ||
> | ||
</bit-chip-select> | ||
</ng-container> | ||
<bit-chip-select | ||
*ngIf="organizations.length" | ||
formControlName="organization" | ||
placeholderIcon="bwi-vault" | ||
[placeholderText]="'vault' | i18n" | ||
[options]="organizations" | ||
formControlName="cipherType" | ||
placeholderIcon="bwi-list" | ||
[placeholderText]="'type' | i18n" | ||
[options]="cipherTypes" | ||
> | ||
</bit-chip-select> | ||
</ng-container> | ||
<ng-container *ngIf="collections$ | async as collections"> | ||
<bit-chip-select | ||
*ngIf="collections.length" | ||
formControlName="collection" | ||
placeholderIcon="bwi-collection" | ||
[placeholderText]="'collection' | i18n" | ||
[options]="collections" | ||
> | ||
</bit-chip-select> | ||
</ng-container> | ||
<ng-container *ngIf="folders$ | async as folders"> | ||
<bit-chip-select | ||
*ngIf="folders.length" | ||
placeholderIcon="bwi-folder" | ||
formControlName="folder" | ||
[placeholderText]="'folder' | i18n" | ||
[options]="folders" | ||
> | ||
</bit-chip-select> | ||
</ng-container> | ||
<bit-chip-select | ||
formControlName="cipherType" | ||
placeholderIcon="bwi-list" | ||
[placeholderText]="'type' | i18n" | ||
[options]="cipherTypes" | ||
> | ||
</bit-chip-select> | ||
</form> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters