microsoft / AdaptiveCards

A new way for developers to exchange card content in a common and consistent way.
https://adaptivecards.io
MIT License
1.75k stars 550 forks source link

[Feature Request] Add aria-label, aria-labelledby labels to Action.submit, Textblock and other Adaptive card elements #8679

Open StCross opened 1 year ago

StCross commented 1 year ago

Problem Statement

It is found that users has no where to add self-defined aria-label, aria-labelledby labels to card elements. These labels are the reliable sources for the accessible names for screen readers.

Proposed solution

Add properties to Action.submit, Textblock and other necessary Adaptive card elements, to allow users define aria-label, aria-labelledby for front-end html of Adaptive card elements. Hence, Adaptive cards can be more accessible and readble.

Alternatives or Workarounds

No response

jparta commented 11 months ago

This is a big limitation. Using the 'label' property on inputs I can label one input. This does not work when many inputs share the same label, such in a table where a column consists of inputs fields. An ideal solution would be to be able to refer to the same label (column name in the case of a table) from multiple inputs, in the vain of aria-labelledby.