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

[fix] Allow any element as valid for aria-labelledby #274

Merged

Conversation

paularmstrong
Copy link
Contributor

What:

See #271 for more context.

Why:

It is valid to allow any element to be the label when using aria-labelledby, not just <label> elements. The current implementation in dom-testing-library restricts to label elements.

How:

Removed a filter that restricted to label elements.

Checklist:

  • Documentation added to the
    docs site
  • Typescript definitions updated
  • Tests
  • Ready to be merged

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Thanks!

@kentcdodds kentcdodds merged commit e7f492c into testing-library:master Jun 1, 2019
@kentcdodds
Copy link
Member

@all-contributors please add @paularmstrong for code and tests

@allcontributors
Copy link
Contributor

@kentcdodds

We had trouble processing your request. Please try again later.

@kentcdodds
Copy link
Member

@all-contributors please add @paularmstrong for code and tests

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @paularmstrong! 🎉

@allcontributors
Copy link
Contributor

@kentcdodds

I've put up a pull request to add @paularmstrong! 🎉

@kentcdodds
Copy link
Member

🎉 This PR is included in version 5.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants