Adaptive Cards: Action set with role="menubar" must have 1 or more descendants with role="menuitem". #3949
Labels
area-accessibility
bug
Indicates an unexpected problem or an unintended behavior.
external-adaptive-cards
Version
main
which is using[email protected]
.Also repro on Adaptive Cards Designer independently.
Not repro on
[email protected]
which was used by4.13.0
.Describe the bug
Our customer reported that all elements with
role="menubar"
must have 1 or more descendants of element withrole="menuitem"
.According to WAI-ARIA:
menubar
has "Required Owned Elements" ofmenuitem
,menuitemcheckbox
,menuitemradio
(under or not undergroup
)Action.Submit
buttons generated bycard.actions
is contained in amenubar
. Thatmenubar
does not fulfill the "Required Owned Elements". This is because the action generated is abutton
, instead ofmenuitem
.Steps to reproduce
Put the card in Adaptive Card Designer. Enable "Preview Mode". Then, inspect the DOM tree.
Expand to see the Adaptive Cards JSON
Expected behavior
All elements with
role="menubar"
must have 1 or more descendants of element withrole="menuitem"
.(This screenshot is taken from Adaptive Cards Designer in Preview Mode)
Additional context
[Bug]
The text was updated successfully, but these errors were encountered: