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] Form elements must have labels #3147

Closed
1Copenut opened this issue May 7, 2020 · 7 comments
Closed

[A11y] Form elements must have labels #3147

1Copenut opened this issue May 7, 2020 · 7 comments
Assignees
Labels
area-accessibility Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. external-adaptive-cards

Comments

@1Copenut
Copy link

1Copenut commented May 7, 2020

Screenshots

Screen Shot 2020-05-07 at 12 17 24 PM

Version

To determine what version of Web Chat you are running, open your browser's development tools, and paste the following line of code into the console.

[].map.call(document.head.querySelectorAll('meta[name^="botframework-"]'), function (meta) { return meta.outerHTML; }).join('\n')

If you are using Web Chat outside of a browser, please specify your hosting environment. For example, React Native on iOS, Cordova on Android, SharePoint, PowerApps, etc.

<meta name="botframework-directlinespeech:version" content="4.8.1">
<meta name="botframework-webchat:bundle:variant" content="full-es5">
<meta name="botframework-webchat:bundle:version" content="4.8.1">
<meta name="botframework-webchat:core:version" content="4.8.1">
<meta name="botframework-webchat:ui:version" content="4.8.1">

Describe the bug

Steps to reproduce

  1. Verify you have the Deque axe browser plugin installed on Firefox or Chrome
  2. Go to https://www.va.gov/coronavirus-chatbot/
  3. Click on My current COVID-19 symptoms (CDC self-checker tool)
  4. Scroll down and click on I agree
  5. Scroll down and click on United States
  6. Run axe check and verify the error message Form elements must have labels

Expected behavior

An axe check should not announce a violation for the state <select> about a missing label. This will ensure screen reader users can understand why they are being asked to select a location, and what that location means in context.

Additional context

This bug is related to the data being generated by the CDC covid19healthbot JSON objects. I've looked through that repo but couldn't find any indication the <select> menu was being created.

The axe violation can be fixed by adding an aria-label to the select menu:

<select
  aria-label="Where in the United States are you located?"
  class="ac-input ac-multichoiceInput ac-choiceSetInput-compact"
  style="width: 100%; min-width: 0px;"
>

Please advise if this is an upstream issue, and I will refile with the CDC's healthbot repo. Thank you.

[Bug]

@1Copenut 1Copenut added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Required for internal Azure reporting. Do not delete. labels May 7, 2020
@compulim
Copy link
Contributor

compulim commented May 9, 2020

Thanks @1Copenut.

I will investigate if our recent fix #3146 will also fix this one automatically. If it's not, I will communicate with Adaptive Cards team to see if we can inject an aria-label to their select element.

@compulim compulim added the customer-replied-to Required for internal reporting. Do not delete. label May 9, 2020
@gabog
Copy link

gabog commented May 26, 2020

Hi @compulim, do you have any updates on this one?

@compulim
Copy link
Contributor

This is an external issue. The bug here is for tracking purpose only.

@1Copenut
Copy link
Author

1Copenut commented Jun 8, 2020

@compulim Do I need to refile this issue elsewhere, perhaps with the CDC?

@srinaath
Copy link

@clearab This looks like an issue with Adaptive Cards. Could you take a look at it.

@clearab
Copy link

clearab commented Jun 22, 2020

@compulim Is there an Issue open on the AC side for this, or should I open one?

@compulim
Copy link
Contributor

compulim commented Jul 8, 2020

This is fixed in #3287.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-accessibility Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete. external-adaptive-cards
Projects
None yet
Development

No branches or pull requests

6 participants