From 3c3bd013d8da1cc9c9765b0ec72f370ad5cd3c5f Mon Sep 17 00:00:00 2001 From: Pankaj Bhojwani Date: Fri, 11 Mar 2022 09:32:41 -0800 Subject: [PATCH] update tab indices accordingly --- source/nodejs/adaptivecards-designer/src/toolbar.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/nodejs/adaptivecards-designer/src/toolbar.ts b/source/nodejs/adaptivecards-designer/src/toolbar.ts index 05e1f99d9c..676cb8f253 100644 --- a/source/nodejs/adaptivecards-designer/src/toolbar.ts +++ b/source/nodejs/adaptivecards-designer/src/toolbar.ts @@ -72,10 +72,12 @@ export class ToolbarButton extends ToolbarElement { if(!this.isEnabled) { this.renderedElement.classList.add("acd-toolbar-button-disabled"); this.renderedElement.setAttribute("aria-disabled", "true"); + this.renderedElement.tabIndex = -1; } else { this.renderedElement.classList.remove("acd-toolbar-button-disabled"); this.renderedElement.removeAttribute("aria-disabled"); + this.renderedElement.tabIndex = 0; } if (this.isToggled) {