mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-2602]- Datatable - Selected state properly announced (#5459)
* chore: selected row now announces state * chore: removal of tabindex on icon button
This commit is contained in:
@@ -67,7 +67,11 @@ export class DataTableRowComponent implements FocusableOption {
|
||||
if (!this.row) {
|
||||
return null;
|
||||
}
|
||||
return this.row.getValue('name') || '';
|
||||
if (this.row.isSelected) {
|
||||
return this.row.getValue('name') + ' selected' || '';
|
||||
} else {
|
||||
return this.row.getValue('name') || '';
|
||||
}
|
||||
}
|
||||
|
||||
@HostBinding('attr.tabindex')
|
||||
|
@@ -107,7 +107,7 @@
|
||||
adf-drop-zone dropTarget="cell" [dropColumn]="col" [dropRow]="row">
|
||||
<div *ngIf="!col.template" class="adf-datatable-cell-container">
|
||||
<ng-container [ngSwitch]="col.type">
|
||||
<div *ngSwitchCase="'image'" class="adf-cell-value" tabindex="0">
|
||||
<div *ngSwitchCase="'image'" class="adf-cell-value">
|
||||
<mat-icon *ngIf="isIconValue(row, col); else no_iconvalue">{{ asIconValue(row, col) }}
|
||||
</mat-icon>
|
||||
<ng-template #no_iconvalue>
|
||||
|
Reference in New Issue
Block a user