-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[feat] a11y-no-redundant-roles #7067
[feat] a11y-no-redundant-roles #7067
Conversation
I just realized there exists a PR already for this: #5361 . Though I'm not sure which implementation should be preferred. |
Crap now I feel bad for choosing either one since both has its good parts and effort put into it. #5361 does have more checks. On the other hand, this PR also handles parent section/article checks. If I have to choose, I think we should continue this, and borrow over the extra checks from #5361 to here. We can then have @mhatvan as the co-author in the commit description. |
I'd be more than happy to update with work already done in #5361. I think the joining of the two would make for a robust set of checks. |
I've updated this PR with the conditions that are checked in PR #5361 @bluwy + @dummdidumm. I've also updated the logic so that there isn't a massive |
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.
Thanks for further improving the PR! I've left some comments to help with performance, but after that this looks good to me.
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.
Thanks for keeping up with the many requested changes 😅 LGTM with one tiny nitpick.
Well, I tried to get attention to my PR without success for a while. Anyway, I am fine with having this PR merged with stuff taken from mine ;) |
It is definitely important to acknowledge that a significant portion of the code was championed by you @mhatvan. I learned from it and it looks like the checks should be pretty robust as a result. Thank you :) |
Thanks man, I appreciate it! All that matters is more and improved a11y checks ;) |
It seems like one specific test (unrelated perhaps to this PR) is failing on macOS-latest and node 12. Is there any guidance on making it so this PR is fully test compliant? |
Don't worry about that, according to CI they just timed out. |
Released in 3.45.0 - thank you! |
Woo! Thanks everyone for your guidance and hard work. Much appreciated and I learned a lot. |
This solves one task on the list in #820. My first PR so probably a lot going on wrong here but I would be very appreciative for feedback and guidance on contributing.
Before submitting the PR, please make sure you do the following
[feat]
,[fix]
,[chore]
, or[docs]
.Tests
npm test
and lint the project withnpm run lint