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

a11y: have screen-reader extract card titles from headers #2367

Merged
merged 3 commits into from
Mar 25, 2020

Conversation

beyackle
Copy link
Contributor

Description

The label that gets read by the screen reader turns out to come from the ElementWrapper component, so this adds some mechanisms to that code so it can reach in and extract the title of what it's rendering. I couldn't use a callback because ElementWrapper just has generic "children" with no guarantee of that having any shape in particular, and I didn't want to add a whole new "ariaLabel" field to our schema when it would just duplicate the same information already in "title".

There are a lot more screen-reader-related issues going on in this codebase, but this at least fixes one of them.

Task Item

Closes #2058

@github-actions
Copy link

Coverage Status

Coverage decreased (-0.1%) to 39.602% when pulling ffb30af on beyackle/readCardHeaders into 79973c0 on master.

@beyackle beyackle marked this pull request as ready for review March 25, 2020 17:54
@corinagum
Copy link
Contributor

LGTM :)

@cwhitten cwhitten merged commit cff5ffa into master Mar 25, 2020
@cwhitten cwhitten deleted the beyackle/readCardHeaders branch March 25, 2020 18:47
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
…2367)

* read action-header titles in SR

* add titleInHeader prop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants