From 2e41d890cf2113eca16bb84e288821cc978ce6ca Mon Sep 17 00:00:00 2001 From: "Paul Campbell (DEP)" Date: Tue, 9 Jun 2020 15:01:04 -0700 Subject: [PATCH] [Site] Opt out of tabIndex generation in samples and designer --- source/nodejs/adaptivecards-designer/src/card-designer.ts | 1 + .../adaptivecards-site/themes/adaptivecards/source/js/script.js | 1 + 2 files changed, 2 insertions(+) diff --git a/source/nodejs/adaptivecards-designer/src/card-designer.ts b/source/nodejs/adaptivecards-designer/src/card-designer.ts index 2c36632f4d..03f7fc7f6a 100644 --- a/source/nodejs/adaptivecards-designer/src/card-designer.ts +++ b/source/nodejs/adaptivecards-designer/src/card-designer.ts @@ -814,6 +814,7 @@ export class CardDesigner extends Designer.DesignContext { Adaptive.GlobalSettings.enableFullJsonRoundTrip = true; Adaptive.GlobalSettings.allowPreProcessingPropertyValues = true; + Adaptive.GlobalSettings.setTabIndexAtCardRoot = false; Adaptive.AdaptiveCard.onProcessMarkdown = (text: string, result: Adaptive.IMarkdownProcessingResult) => { CardDesigner.internalProcessMarkdown(text, result); diff --git a/source/nodejs/adaptivecards-site/themes/adaptivecards/source/js/script.js b/source/nodejs/adaptivecards-site/themes/adaptivecards/source/js/script.js index c711f2b65b..5aa77effee 100644 --- a/source/nodejs/adaptivecards-site/themes/adaptivecards/source/js/script.js +++ b/source/nodejs/adaptivecards-site/themes/adaptivecards/source/js/script.js @@ -402,6 +402,7 @@ $(function () { // TODO: clean this up to only provide custom host config options // it breaks on any rename as-is + AdaptiveCards.GlobalSettings.setTabIndexAtCardRoot = false; var adaptiveCard = new AdaptiveCards.AdaptiveCard(); adaptiveCard.hostConfig = new AdaptiveCards.HostConfig(hostConfig); var renderedCard;