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(tab): make tab respect radio groups (fix #207) #330
Conversation
Codecov Report
@@ Coverage Diff @@
## master #330 +/- ##
==========================================
+ Coverage 99.34% 99.37% +0.02%
==========================================
Files 2 2
Lines 305 319 +14
Branches 79 84 +5
==========================================
+ Hits 303 317 +14
Misses 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.
Just one question but looking good. Thanks for doing this!
feb77bb
to
93da220
Compare
Sorry I force pushed this to clean up the commit message, not realizing you reviewed. If you're okay with this for now we can merge, unless you want the behavior documented somewhere first. |
🎉 This PR is included in version 11.3.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What: make tab respect radio groups
Why: fixes bugs / inaccurate simulation with
tab()
naively focusing all radio buttonsHow: ignore radio buttons that aren't checked or at the ends within their named groups
Checklist:
The algorithm I used to prune irrelevant radio buttons is a bit ugly and hacky because of all the edge cases, so I'd appreciate any ideas to improve it. We also might need to carefully document this change as it could cause tests to fail if they're relying on the incorrect focusing behavior (though changing incorrect functionality to fix a bug is technically not a breaking change in semver).