-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(ListBox): update focus states for listbox components #15980
fix(ListBox): update focus states for listbox components #15980
Conversation
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Hi @tw15egan, have you modified the focus state for dropdowns and comboboxes? 🤔
I'm not certain if it's a bug, but I'm unable to view the updated focus state in the multi-select and filterable multi-select options...
@Kritvi-bhatia17 Yes, they have all been updated and I am able to see the changes when looking at the latest deploy preview: |
Hi @tw15egan,
|
Heyy @tw15egan! Could you please add Michael and Lauren as reviewers once you've updated everything? |
@Kritvi-bhatia17 changes have been made and the deploy preview should be updated in a few minutes 👍🏻 |
The focus handling on dropdown and combobox looks good. This may not have been introduced here, but I was a little surprised to see the list in combobox wrapping around (i.e., when I got to the bottom item, it wrapped to the top item). This isn't a menu, so I was a little surprised to see that happen. I would call that atypical for this kind of function. Like I said, if that wasn't introduced in this change, this is probably a new issue to explore. |
I had a look at the pre-existing version of this component and that 'wraparound' keyboard is doing it there too, so it’s not related to the changes here. |
Damn, nice point @mbgower! I totally agree with you and will create a separate issue for that. |
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.
Awesome work, @tw15egan! You nailed those changes super quickly. ⚡️
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.
looks good to merge!
801dd7b
…gn-system#15980) * fix(ListBox): update focus states for listbox components * fix(ListBox): update fluid listbox components * test(Multiselect): update keybaord nav tests * fix(Multiselect): remove console.log * test(FluidMultiselect): update tests * fix(ComboBox): adjust mouse interactions * fix(Dropdown): adjust focus state on mouse leave * fix(MultiSelect): match mouse focus to keyboard, home/end interaction * fix(FilterableMultiselect): align keyboard, mouse focus interaction * style(ListBox): adjust outline offset when outline is only 1px * chore(console): remove console.log * chore(Multiselect): revert testing default state
Closes #15698
Updates focus states for
Listbox
components, as weel as setting focus to the first item inMultiSelect
andFilterableMultiSelect
Changelog
New
Changed
ListBox
component is open is now just1px
MultiSelect
andFilterableMultiSelect
Testing / Reviewing
Ensure focus border on
ListBox
components goes to1px
when the menu is open, and that the first item is focused when the menu opens with keyboard