carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.86k stars 1.82k forks source link

[Feature Request]: Carbon Components React: MultiSelect dynamic reorder selected filters - after select/deselect items and reopen menu #12004

Open HenryZhuhongyin opened 2 years ago

HenryZhuhongyin commented 2 years ago

Package

@carbon/react

Browser

Chrome

Package version

v1.0.3 && v1.11.0

React version

v16.14.0

Description

could you expose a configuration of not allowing reorder? because it will be more friendly to users get used to the items/options being in a certain order.

Reproduction/example

https://react.carbondesignsystem.com/?path=/story/components-multiselect--default

Steps to reproduce

  1. choose multiselect--default
  2. click the dropdown and select "option 4" then close dropdown
  3. click to open the dropdown, "option 4" is moved to the top, user expected it to be in a certain order as before.

Code of Conduct

jnm2377 commented 2 years ago

Hey @HenryZhuhongyin thanks for taking the time to open this issue. You bring up good concerns about what a user might expect when making a selection. This behavior is implemented per our design guidance. However, if design research makes sense, then it could potentially be an alternate behavior that we could implement, with the default behavior remaining as is. Do you have any user research or UX research you could share for this?

jnm2377 commented 2 years ago

@carbon-design-system/design do y'all have any thoughts on this?

laurenmrice commented 2 years ago

@HenryZhuhongyin That makes sense to me, I think it would be fine to offer that functionality as a prop depending on the use case at hand. 👍

HenryZhuhongyin commented 2 years ago

@jnm2377 Thank you for your quick response. That's cool.

sstrubberg commented 2 years ago

This is great. Thank you @HenryZhuhongyin for creating this issue and thank you @jnm2377 and @laurenmrice for the responses. @HenryZhuhongyin due to constraints with our roadmap and resource availability, we won't be able to pick this up anytime soon, but we would love a PR if you're open to it. Let us know if you're interested in contributing and how we can support you.