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,8 +67,12 @@ export class DataTableRowComponent implements FocusableOption {
|
|||||||
if (!this.row) {
|
if (!this.row) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if (this.row.isSelected) {
|
||||||
|
return this.row.getValue('name') + ' selected' || '';
|
||||||
|
} else {
|
||||||
return this.row.getValue('name') || '';
|
return this.row.getValue('name') || '';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@HostBinding('attr.tabindex')
|
@HostBinding('attr.tabindex')
|
||||||
get tabindex(): number|null {
|
get tabindex(): number|null {
|
||||||
|
@@ -107,7 +107,7 @@
|
|||||||
adf-drop-zone dropTarget="cell" [dropColumn]="col" [dropRow]="row">
|
adf-drop-zone dropTarget="cell" [dropColumn]="col" [dropRow]="row">
|
||||||
<div *ngIf="!col.template" class="adf-datatable-cell-container">
|
<div *ngIf="!col.template" class="adf-datatable-cell-container">
|
||||||
<ng-container [ngSwitch]="col.type">
|
<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 *ngIf="isIconValue(row, col); else no_iconvalue">{{ asIconValue(row, col) }}
|
||||||
</mat-icon>
|
</mat-icon>
|
||||||
<ng-template #no_iconvalue>
|
<ng-template #no_iconvalue>
|
||||||
|
Reference in New Issue
Block a user