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

Color contrast incomplete for label and input #3257

Closed
straker opened this issue Nov 5, 2021 · 1 comment
Closed

Color contrast incomplete for label and input #3257

straker opened this issue Nov 5, 2021 · 1 comment
Labels
color contrast Color contrast issues fix Bug fixes pr A pr has been created for the issue
Milestone

Comments

@straker
Copy link
Contributor

straker commented Nov 5, 2021

This returns incomplete for the label element because we try to get the midpoint of the label, which is way outside the text content.

<label>Do you like peas?
  <input name="peas" style="width: 100%">
</label>
@straker straker added fix Bug fixes color contrast Color contrast issues labels Nov 5, 2021
@straker straker added the pr A pr has been created for the issue label Nov 2, 2022
@straker straker added this to the axe-core 4.5.2 milestone Nov 2, 2022
@padmavemulapati
Copy link

Validated with the latest code base of axe-core develop branch,
with the code snippet:

<label>Do you like peas?
  <input name="peas" style="width: 100%">
</label>

label element is getting incomplete results
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
color contrast Color contrast issues fix Bug fixes pr A pr has been created for the issue
Projects
None yet
Development

No branches or pull requests

2 participants