-
Notifications
You must be signed in to change notification settings - Fork 471
fix: Treat header as banner role #656
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: Treat header as banner role #656
Conversation
The latest [aria-query version](https://github.com/A11yance/aria-query/releases/tag/v4.2.2) fixes the issue of failing to recognize `<header>` as a `banner` role. Fixes: testing-library#578
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit c6e1bb9:
|
Codecov Report
@@ Coverage Diff @@
## master #656 +/- ##
===========================================
- Coverage 100.00% 99.65% -0.35%
===========================================
Files 24 24
Lines 582 582
Branches 149 149
===========================================
- Hits 582 580 -2
- Misses 0 2 +2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! Thank you 👍👍
@all-contributors please add @darekkay for code and tests |
I've put up a pull request to add @darekkay! 🎉 |
🎉 This PR is included in version 7.16.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What:
<header>
is not recognized asbanner
role, and cannot be selected withgetByRole("banner")
.See also: #578
Why:
It should work correctly according to the specs.
How:
Update
aria-query
dependency. The latest aria-query version fixes the issue of failing to recognize<header>
as abanner
role.Checklist:
docs site N/A
Fixes: #578