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

This reverts commit d7ad1f9ad9.
This commit is contained in:
Denys Vuika
2022-11-29 11:27:07 +00:00
committed by GitHub
parent d7ad1f9ad9
commit 740e3cef9b
2 changed files with 12 additions and 14 deletions

View File

@@ -59,19 +59,18 @@
</div> </div>
<div data-automation-id="adf-attach-widget-readonly-list"> <div data-automation-id="adf-attach-widget-readonly-list">
<mat-list *ngIf="hasFile" role="list"> <mat-list *ngIf="hasFile">
<mat-list-item class="adf-attach-files-row" *ngFor="let file of field.value" role="listitem"> <mat-list-item class="adf-attach-files-row" *ngFor="let file of field.value">
<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="img" role="button"
[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)"
tabindex="0" class="adf-file">{{file.name}}</span> role="button" 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,8 +49,7 @@
*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>