-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[ComboBox] set tabIndex depending of number of options #2963
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
Conversation
|
👋 Thanks for opening your first pull request. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. |
|
🟢 This pull request modifies 3 files and might impact 1 other files. Details:All files potentially affected (total: 1)📄
|
a0dfb46 to
7da3f08
Compare
|
Reminder: there was already an attempt to fix this via #1126 |
|
Hey @sylvhama, thanks for the contribution. I don't have the bandwidth to review this currently, so am removing myself as a reviewer. My suggestion would be to ping a couple people on your team for review and a thorough tophat, with particular focus on testing for accessibility. Once two members of your team have reviewed and approved, we can circle back and talk about getting this released. |
|
Hi @sylvhama! I'm afraid I have to second Dan's comment. I'd recommend careful testing within your team first. If you have accessibility questions that can't be answered by what's in the Accessibility Handbook, please reach out to the #accessibility channel in Slack. |
krystalcampioni
left a comment
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.
🎩 works as expect
carolopolo
left a comment
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.
LGTM! 🤠
b04f4ff to
81caa24
Compare
|
🎉 Thanks for your contribution to Polaris React! |
WHY are these changes introduced?
Fixes #1089
Allows user to directly focus the textfield when there aren't options while navigating with a keyboard.
WHAT is this pull request doing?
It makes the tabindex dynamic based on the number of options.
Copy-paste this code in
playground/Playground.tsx:🎩 checklist
README.mdwith documentation changes