-
Notifications
You must be signed in to change notification settings - Fork 191
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
Does <select multiple>
need a button and popup by default?
#1102
Comments
This website also has a select multiple which creates buttons for each selected option inside the button. I think it would be very challenging to try to get something like this standardized. This also looks like something that greg was looking into for combobox? |
The above mentioned website design is how we designed (one version of) our multi select. (Scott please forgive us for the input inside the picker UI 👀.) Chrome Android also does a Firefox android has an awkward Inbetween where it renders as a listbox but when you press it it loads a dialog. Imo an in-page listbox is a separate component that should be able to be single or multi selectable. One of our other versions of multi select used a dual listbox approach where it would be desirable to embedded in the page. The default multi select should be a button with a drop down imo. We should also try to standardise something like the iOS/chrome android approach. Or perhaps we can try render the selected options as flex items within a |
@lukewarlow I agree that this is the most known pattern when looking at external design systems. What do you mean with standardise iOS/android approach? Isn't this idea to make it fully customisable and then if desired opt-out via CSS again to show native controls if desired? I think CSS style queries could help with further detection in the future, but unfortunately this is currently only usable on custom properties. I might be reading this wrong :) |
I mean have this as the default button contents. |
The Open UI Community Group just discussed The full IRC log of that discussion<masonf> jarhar: basically I was just starting to think about select-multiple. On our blog post feedback form, people said they want this.<masonf> jarhar: if we don't worry about the button, then I can implement select-multiple very easily. So what's the button behavior? <masonf> jarhar: Lots of examples with button behavior on select multiples. Some have chips for selections with buttons to remove, etc. <masonf> jarhar: having generated content in the browser to do this sounds... challenging. <masonf> jarhar: if developers need the browser to do that, then we'll need to figure this out. But if we can do it easily, let's do it. <masonf> naman: what's the easy solution? <masonf> jarhar: it would look like select multiple on desktop today, an in-page control with checkboxes. <masonf> jarhar: they could make their own button that connects to a popover containing one of those. <masonf> naman: that is acceptable to me <masonf> q? <masonf> scotto: it would be nice to give select multiple a glow-up. That'd be it though. I wish Sarah H was here, she did a ton of UX studies on this. It was a tire fire. People don't know how to select items, etc. <masonf> scotto: there might be browser differences, mobile vs. desktop, etc. <masonf> q+ <masonf> scotto: maybe do a bit of an update, better styles, etc. That might make sense. People might make it into a popover, that could work. But there might be issues lurking. <masonf> scotto: checkbox group is a different idea of how to do it. <masonf> scotto: checkboxes that act like radio buttons, clear checked/not checked state, keyboard activation is easy, etc. <jamesn> q+ <masonf> ack mason <masonf> ack james <masonf> jamesn: would solving select multiple solve the problem for design systems today? <jarhar> gotta go <masonf> title: foo |
I've removed the agenda label but it doesn't look like there was a resolution to this |
nope. no resolution.
or
|
I think it's worth a discussion on whether we need an embed Vs popup option more generally than select multiple. Because that might sway what we end up doing here. |
All good points Scott, making it a popup is going to be hard.
One idea I had in mind for this was to use the size attribute to differentiate popup vs in-page since that already happens for single-select, but most mobile browsers already change |
In my mind, the big complication with doing appearance:base for select multiple is that there's not a clear and easy way to represent multiple selected options in the button.
If we follow what browsers already do by having an in-page listbox for select multiple, it would be really easy to go forward with multi selects.
Do most use cases for multi-select have a button? Is it important? If so, what should be in the button?
The text was updated successfully, but these errors were encountered: