Accessibility fixes (#9516)

* add aria label for deploy plan table

* shift focus to options dialog when opened

* add check for when table is empty
This commit is contained in:
Kim Santiago
2020-03-10 14:59:06 -07:00
committed by GitHub
parent 0a117fbd00
commit a013f7d6ff
4 changed files with 14 additions and 1 deletions

View File

@@ -315,6 +315,15 @@ export default class TableComponent extends ComponentBase implements IComponent,
this._table.autosizeColumns();
}
public focus(): void {
if (this._table.grid.getDataLength() > 0) {
if (!this._table.grid.getActiveCell()) {
this._table.grid.setActiveCell(0, 0);
}
this._table.grid.getActiveCellNode().focus();
}
}
// CSS-bound properties
public get data(): any[][] {