-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(MultiSelect): new option to display title of the selected items #5886
Conversation
Deploy preview for carbon-elements ready! Built with commit da33199 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit da33199 https://deploy-preview-5886--carbon-components-react.netlify.app |
Deploy preview for carbon-elements ready! Built with commit 2429b05 |
Deploy preview for carbon-components-react ready! Built without sensitive environment variables with commit 2429b05 https://deploy-preview-5886--carbon-components-react.netlify.app |
I really liked it! It would be a great addition to components |
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.
This PR creates a new option that allows the title of the selected items to be displayed and not just the counter as it is currently.
It was also added the option to display the counter together with the titles because when many items are selected, it may not be possible for all of them to be displayed, in which case scrolling is possible.
This proposed change was made thinking about the usability of the user who will see which items were selected even after closing the selection list, and also allows any of the items to be deselected.
Any suggestions will be highly appreciated.