Skip to content

Commit 0f8d286

Browse files
authored
[JS] Remove role='menubar' and role='menuitem' from ActionCollection (#6763)
Fixes #6425 Fixes #6019 Related #4859
1 parent ef3a272 commit 0f8d286

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

source/nodejs/adaptivecards/src/card-elements.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5007,7 +5007,6 @@ class ActionCollection {
50075007
let buttonStrip = document.createElement("div");
50085008
buttonStrip.className = hostConfig.makeCssClassName("ac-actionSet");
50095009
buttonStrip.style.display = "flex";
5010-
buttonStrip.setAttribute("role", "menubar");
50115010

50125011
if (orientation == Enums.Orientation.Horizontal) {
50135012
buttonStrip.style.flexDirection = "row";
@@ -5114,12 +5113,6 @@ class ActionCollection {
51145113
action.render();
51155114

51165115
if (action.renderedElement) {
5117-
if (primaryActions.length > 1) {
5118-
action.renderedElement.setAttribute("aria-posinset", (i + 1).toString());
5119-
action.renderedElement.setAttribute("aria-setsize", primaryActions.length.toString());
5120-
action.renderedElement.setAttribute("role", "menuitem");
5121-
}
5122-
51235116
if (hostConfig.actions.actionsOrientation == Enums.Orientation.Horizontal && hostConfig.actions.actionAlignment == Enums.ActionAlignment.Stretch) {
51245117
action.renderedElement.style.flex = "0 1 100%";
51255118
}

0 commit comments

Comments
 (0)