Skip to content

Commit

Permalink
fix(platform): change aria-rowindex initial value (#12778) (#12927)
Browse files Browse the repository at this point in the history
Co-authored-by: Edyta Sporysz <[email protected]>
  • Loading branch information
mikerodonnell89 and edytasporysz authored Jan 14, 2025
1 parent e4cf354 commit 0417dfd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ export class TableRowComponent<T> extends TableRowDirective implements OnInit, A
row: TableRow<T>;

/** Row index. */
@HostBinding('attr.aria-rowindex')
@Input()
index: number;

Expand Down
1 change: 1 addition & 0 deletions libs/platform/table/table.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
[main]="true"
[class.fd-table__row--draggable]="isDraggable"
fdp-table-row
[attr.aria-rowindex]="rowIndex + 1"
[rowId]="id"
[class.fd-tr-hovered]="!row.checked && hoveredRowIndex$() === rowIndex"
[index]="rowIndex"
Expand Down

0 comments on commit 0417dfd

Please sign in to comment.