-
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(Multiselect): remove focus when MultiSelect is open #16259
fix(Multiselect): remove focus when MultiSelect is open #16259
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
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.
DAMN, @tw15egan, that was quick! 🔥
- Sorry, I might not have been clear about the focus state explanation (both for default and fluid multi-select).
-
What was the initial thought behind "With Initial Selected Item" showing this upfront?
-
Should we also introduce
Filterable With Layer
under fluid multi-select as well?
@Kritvi-bhatia17 We keep the focus on
|
|
@Kritvi-bhatia17 Focus states are usually added as an affordance for keyboard users, not mouse users, but I can add this if you would like. We don't have any of these "double" focus states outside the |
@Kritvi-bhatia17 updated 👍 |
Hi @tw15egan! Thanks for sharing this with me. I'm not entirely sure about this, so I'll reach out to Lauren to get a little more context. |
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!
Great work @tw15egan!! 🔥
Hi @tw15egan, I connected with Lauren to confirm about this and she said that: |
b348878
Closes #16252
Closes #16257
Removes focus from
MultiSelect
when the dropdown menu is opened. The focus should return to the input when it is closed.This also adds a distinct
FilterableMultiselect
story underFluidMultiSelect
for consistency with the non-fluidMultiselect
storyChangelog
New
Filterable
story underFluid components --> FluidMultiselect
Changed
Multiselect
button when the input is closedTesting / Reviewing
Open the
Multiselect
; there should be no focus border around the input, only the item. Ensure theFilterable
variant ofFluidMultiselect
is discoverable