Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JS] Paint ToggleVisibility actions with aria-controls attribute #4735

Merged
merged 5 commits into from
Sep 8, 2020

Conversation

paulcam206
Copy link
Member

@paulcam206 paulcam206 commented Sep 4, 2020

Related Issue

Fixes VSO 23940376

Description

The aria-controls attribute lets screenreaders know when one element controls the visibility of another element. This change adds aria-controls to ToggleVisibility actions and reflects the aria-expanded property on the elements that are toggled.

How Verified

  • local build, devtools, narrator
Microsoft Reviewers: Open in CodeFlow

@paulcam206 paulcam206 added Platform-JavaScript Bugs or features related to the JavaScript renderer Area-Accessibility Bugs around feature accessibility labels Sep 4, 2020
@ghost
Copy link

ghost commented Sep 4, 2020

Hi @paulcam206. Thanks for helping make the AdaptiveCards JS renderer + tooling better. As additional verification, once the JS build succeeds, please go to the test site to test out your website/designer changes.

Copy link
Member

@dclaux dclaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ould you add a note in README.md to indicate that element Ids are now stamped on their associated DOM elements?

@paulcam206 paulcam206 merged commit ad18094 into main Sep 8, 2020
@paulcam206 paulcam206 deleted the paulcam/aria-controls-toggle branch September 8, 2020 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Accessibility Bugs around feature accessibility Platform-JavaScript Bugs or features related to the JavaScript renderer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants