mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
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:
@@ -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[][] {
|
||||
|
||||
Reference in New Issue
Block a user