From 054583e0ded92c8550e61e67f861d48a6309d44f Mon Sep 17 00:00:00 2001 From: Aasim Khan Date: Fri, 6 Nov 2020 10:44:33 -0800 Subject: [PATCH] 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 --- .../declarativeTable.component.html | 89 ++++++++++--------- .../declarativeTable.component.ts | 9 ++ 2 files changed, 57 insertions(+), 41 deletions(-) diff --git a/src/sql/workbench/browser/modelComponents/declarativeTable.component.html b/src/sql/workbench/browser/modelComponents/declarativeTable.component.html index 9485ef2934..e51f706ec0 100644 --- a/src/sql/workbench/browser/modelComponents/declarativeTable.component.html +++ b/src/sql/workbench/browser/modelComponents/declarativeTable.component.html @@ -1,45 +1,52 @@ - - - - - + + + + + + - - - - - - - + + + + + + + + + - +
- {{column.displayName}} - -
+ {{column.displayName}} + +
- - - - - - - - - {{cellData.value}} - - - -
+ + + + + + + + + {{cellData.value}} + + + +
diff --git a/src/sql/workbench/browser/modelComponents/declarativeTable.component.ts b/src/sql/workbench/browser/modelComponents/declarativeTable.component.ts index 635f0b8754..9f5c06aca8 100644 --- a/src/sql/workbench/browser/modelComponents/declarativeTable.component.ts +++ b/src/sql/workbench/browser/modelComponents/declarativeTable.component.ts @@ -220,6 +220,15 @@ export default class DeclarativeTableComponent extends ContainerBase