mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Adding aria label to "check all" check box in declarative table. (#13216)
* added arialable for check all checkboxes and added some missing roles for the table elements * removed duplicate attribute * Moved column header aria label logic to a function. * fixed typos in declarative table * Changed the aria label text to something that is more intuiive. * fixed typo in localized string identifier
This commit is contained in:
@@ -220,6 +220,15 @@ export default class DeclarativeTableComponent extends ContainerBase<any, azdata
|
||||
return '';
|
||||
}
|
||||
|
||||
public getCheckAllColumnAriaLabel(colIdx: number): string {
|
||||
return localize('checkAllColumnLabel', "check all checkboxes in column: {0}", this.columns[colIdx].displayName);
|
||||
}
|
||||
|
||||
public getHeaderAriaLabel(colIdx: number): string {
|
||||
const column = this.columns[colIdx];
|
||||
return (column.ariaLabel) ? column.ariaLabel : column.displayName;
|
||||
}
|
||||
|
||||
public getItemDescriptor(componentId: string): IComponentDescriptor {
|
||||
return this.modelStore.getComponentDescriptor(componentId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user