[ACS-3553] Fix process page accessibility from csv(880320,880281) (#8017)

* [ACS-3553] Fix process page accessibility from csv(880320,880281)

* [ACS-3553] Addressed comment
This commit is contained in:
rbahirsheth 2022-11-29 16:08:19 +05:30 committed by GitHub
parent dea5f21894
commit d7ad1f9ad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 12 deletions

View File

@ -59,18 +59,19 @@
</div> </div>
<div data-automation-id="adf-attach-widget-readonly-list"> <div data-automation-id="adf-attach-widget-readonly-list">
<mat-list *ngIf="hasFile"> <mat-list *ngIf="hasFile" role="list">
<mat-list-item class="adf-attach-files-row" *ngFor="let file of field.value"> <mat-list-item class="adf-attach-files-row" *ngFor="let file of field.value" role="listitem">
<img mat-list-icon class="adf-attach-widget__icon" <img mat-list-icon class="adf-attach-widget__icon"
[id]="'file-'+file.id+'-icon'" [id]="'file-'+file.id+'-icon'"
[src]="file.content ? getIcon(file.content.mimeType) : getIcon(file.mimeType)" [src]="file.content ? getIcon(file.content.mimeType) : getIcon(file.mimeType)"
[alt]="mimeTypeIcon" [alt]="mimeTypeIcon"
(click)="onAttachFileClicked(file)" (click)="onAttachFileClicked(file)"
(keyup.enter)="onAttachFileClicked(file)" (keyup.enter)="onAttachFileClicked(file)"
role="button" role="img"
[attr.aria-label]="file.name"
tabindex="0"/> tabindex="0"/>
<span matLine id="{{'file-'+file.id}}" (click)="onAttachFileClicked(file)" [matTooltip]="file.name" (keyup.enter)="onAttachFileClicked(file)" <span matLine id="{{'file-'+file.id}}" (click)="onAttachFileClicked(file)" [matTooltip]="file.name" (keyup.enter)="onAttachFileClicked(file)"
role="button" tabindex="0" class="adf-file">{{file.name}}</span> tabindex="0" class="adf-file">{{file.name}}</span>
<button id="{{'file-'+file.id+'-option-menu'}}" mat-icon-button [matMenuTriggerFor]="fileActionMenu" <button id="{{'file-'+file.id+'-option-menu'}}" mat-icon-button [matMenuTriggerFor]="fileActionMenu"
[attr.aria-label]="'ADF_PROCESS_LIST.DETAILS.BUTTON.FILE_OPTION_MENU' | translate"> [attr.aria-label]="'ADF_PROCESS_LIST.DETAILS.BUTTON.FILE_OPTION_MENU' | translate">
<mat-icon>more_vert</mat-icon> <mat-icon>more_vert</mat-icon>

View File

@ -49,7 +49,8 @@
*ngIf="showSelectProcessDropdown" *ngIf="showSelectProcessDropdown"
mat-icon-button mat-icon-button
(click)="displayDropdown($event)" (click)="displayDropdown($event)"
[disabled]="disableDropdownButton()"> [disabled]="disableDropdownButton()"
[attr.aria-label]="'ADF_PROCESS_LIST.START_PROCESS.FORM.LABEL.TYPE' | translate">
<mat-icon>arrow_drop_down</mat-icon> <mat-icon>arrow_drop_down</mat-icon>
</button> </button>
</ng-container> </ng-container>