-
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
feat(multiselect): new All option for multiselect #16236
base: main
Are you sure you want to change the base?
feat(multiselect): new All option for multiselect #16236
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.
Hey @Gururajj77 and @preetibansalui
Awesome new functionality! it is working perfect 🚀
Just a couple things I noticed
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hey @benjamin-kurien , I have made following changes, please review it.
|
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.
Overall these changes look great to me and the storybook example in particular is so much better with the item label changed to "All roles" 🙌
I did notice that the checkbox and text of the first/select-all is not vertically centered within the item, it sits slightly too low. Might be off by just 1px or so.
Hey @tay1orjones , Thanks for reviewing this, we are using same classes for the first option as others. It might be possible you are looking the first item as highlighted one so its making you feels like its not centred align. Pls check the screenshots for the sizing: ![]() ![]() |
@preetibansalui Yeah you're right, it's broken in prod too - this is react.carbondesignsystem.com I'm not sure how it got past Percy VRT. Would you mind fixing it in this PR? I know it's a bit beyond the original scope of this issue, but would be great to get it fixed. |
|
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.
Hey all! Looking good! Just wanted to chime in here with a couple design related comments:
Select All story
- The “All roles” option should be at the top of the menu in the multiselect dropdown and not at the bottom, unless the design spec for this has changed.
- The first option that currently gets focus in the menu called “Editor” should be text color token
$text-secondary
in the focus and enabled states. The text color only turns to $text-primary on the hover and selected states.
Playground story
- When I set the
hasSelectAll
prop totrue
, the text for the select all option does not appear in the menu of the multiselect dropdown. - The “All roles” option should be at the top of the menu and not at the bottom in the multiselect dropdown, unless the design spec for this has changed.
- The first option that currently gets focus in the menu called “An example option that is real…” should be text color token
$text-secondary
in the focus and enabled states. The text color only turns to $text-primary on the hover and selected states.
Hey @laurenmrice , Thankyou for reviewing this PR. But I am confused with the comments. I can see the All roles in the top only. Attaching the video of preview, please let me know if I misunderstood something. Screen.Recording.2024-06-20.at.1.56.34.PM.mov |
@preetibansalui Thanks. I was using the Deploy Preview (https://deploy-preview-16236--v11-carbon-react.netlify.app/) link in your PR to review it. This is how the designers usually review PRs, but I guess this link has not been updated with the latest changes. Would you be able to update this, or get help from a dev to update it? I don't know what the procedure is of updating that link. Thanks! |
Had a call with @laurenmrice & @benjamin-kurien and found that in Chrome and Safari its fine but in firefox browser only 'All roles' is coming as a last option. I will fix that. |
@@ -62,7 +62,7 @@ | |||
display: flex; | |||
cursor: pointer; | |||
min-block-size: convert.to-rem(20px); | |||
padding-block-start: convert.to-rem(2px); | |||
padding-block-start: convert.to-rem(1px); |
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.
It doesn't look like this fixed the vertical alignment issue. Playing around with it quickly seems like maybe the label:before
needs to be modified? In the history I'm not sure if this maybe introduced this? #14641
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. Thanks for making the changes.
Closes #16117
Select All feature for multiselect
Changelog
New
Changed