-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[ComboBox] Change tabindex prop to a negative number #1126
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. You can also join #polaris on the Shopify Partners Slack. |
d922ea3 to
fa9f577
Compare
|
I have removed the regression test as I am unable to determine a pattern for testing the tab navigation behaviour. I was following the pattern set out in similar tests for ComboBox but we discovered they are false positives as per #1128 |
|
I'm wondering if a |
AndrewMusgrave
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.
Were you able to tell if it's required for some reason?
|
I chatted with @adamcarchibald this morning. Rather than have this stall, the simplest thing might be to add a comment to ignore the lint rule to get this unblocked. (In that case, The Polaris team should circle back later to fix the combobox implementation.) |
|
What's the next step here, @adamcarchibald? Should this be closed? |
|
|
597cb69 to
e4ad556
Compare
|
I spent some time this morning tophatting this change, and it has negative impact on the focus and keyboard behavior when compared to its current state in master. Both are unusable when interacted with using the arrow keys to move through available items. We've documented the extensive problems with this component here: #689. Rather than spending time trying to patch something with deep issues, we should focus on rebuilding. I think it makes sense to close this pull request and for the Polaris team to prioritize fixing this component. |
WHY are these changes introduced?
Resolves #1089
Fixes tab navigation behaviour in the Autocomplete component by not selecting the ComboBox when tabbing through the component.
WHAT is this pull request doing?
Changes the
tabIndexprop value from0to-1for theComboBoxcomponent.Adds a regression test.