Skip to content

Commit

Permalink
Fix accessibility issue in azdataQueryPlan.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aasimkhan30 committed Feb 27, 2024
1 parent 592f147 commit 20c7d22
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -93311,6 +93311,7 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
edgeElement.tabIndex = -1;
} else {
cell.cellDivs.body.tabIndex = -1;
cell.cellDivs.body.ariaSelected = false;
if(cell.cellDivs.expandCollapse) {
cell.cellDivs.expandCollapse.tabIndex = -1;
}
Expand All @@ -93328,6 +93329,7 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
edgeElement.focus();
} else {
cell.cellDivs.body.tabIndex = 0;
cell.cellDivs.body.ariaSelected = true;
if(cell.cellDivs.expandCollapse) {
cell.cellDivs.expandCollapse.tabIndex = 0;
}
Expand Down Expand Up @@ -93526,6 +93528,7 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
this.firstLoad = false;
if(cellDivs.body){
cellDivs.body.tabIndex = 0;
cellDivs.body.ariaSelected = true;
}
if(cellDivs.expandCollapse){
cellDivs.expandCollapse.tabIndex = 0;
Expand Down
3 changes: 3 additions & 0 deletions dist/js/azdata/azdataQueryPlan.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
edgeElement.tabIndex = -1;
} else {
cell.cellDivs.body.tabIndex = -1;
cell.cellDivs.body.ariaSelected = false;
if(cell.cellDivs.expandCollapse) {
cell.cellDivs.expandCollapse.tabIndex = -1;
}
Expand All @@ -384,6 +385,7 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
edgeElement.focus();
} else {
cell.cellDivs.body.tabIndex = 0;
cell.cellDivs.body.ariaSelected = true;
if(cell.cellDivs.expandCollapse) {
cell.cellDivs.expandCollapse.tabIndex = 0;
}
Expand Down Expand Up @@ -582,6 +584,7 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
this.firstLoad = false;
if(cellDivs.body){
cellDivs.body.tabIndex = 0;
cellDivs.body.ariaSelected = true;
}
if(cellDivs.expandCollapse){
cellDivs.expandCollapse.tabIndex = 0;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "azdataGraph",
"description": "azdataGraph is a derivative of mxGraph, which is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.",
"version": "0.0.59",
"version": "0.0.61",
"homepage": "https://github.com/microsoft/azdataGraph",
"author": "Microsoft",
"license": "Apache-2.0",
Expand Down
3 changes: 3 additions & 0 deletions src/js/azdata/azdataQueryPlan.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
edgeElement.tabIndex = -1;
} else {
cell.cellDivs.body.tabIndex = -1;
cell.cellDivs.body.ariaSelected = false;
if(cell.cellDivs.expandCollapse) {
cell.cellDivs.expandCollapse.tabIndex = -1;
}
Expand All @@ -384,6 +385,7 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
edgeElement.focus();
} else {
cell.cellDivs.body.tabIndex = 0;
cell.cellDivs.body.ariaSelected = true;
if(cell.cellDivs.expandCollapse) {
cell.cellDivs.expandCollapse.tabIndex = 0;
}
Expand Down Expand Up @@ -582,6 +584,7 @@ azdataQueryPlan.prototype.init = function (queryPlanConfiguration) {
this.firstLoad = false;
if(cellDivs.body){
cellDivs.body.tabIndex = 0;
cellDivs.body.ariaSelected = true;
}
if(cellDivs.expandCollapse){
cellDivs.expandCollapse.tabIndex = 0;
Expand Down

0 comments on commit 20c7d22

Please sign in to comment.