-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Select-Control styles break multiple select fields #27166
Comments
Can confirm |
I can reproduce this problem as well. |
We have the same issue in WordPress 5.6 |
As a quick fix, I’m using the following CSS in my block:
And I needed to surround my |
I can reproduce this problem too. |
I started getting this problem too, the component is set to a fixed height of 30px instead of automatically expanding (as a "multiple" select should). |
I also see, reading the component handbook, that the SelectControl is being encouraged for single selections, not for multiple selections. I wonder if this is a simple oversight?
And yet on the same page it does talk about the possibility of using the
And towards the bottom of the page,
|
I made PR #28811 to fix the wording in the README for the SelectControl component. |
Since a gutenberg/packages/components/src/select-control/styles/select-control-styles.js Lines 82 to 97 in 8d1d96d
and here: gutenberg/packages/components/src/select-control/index.js Lines 92 to 94 in 8d1d96d
|
Temporary fix for Gutenberg bug on multiple SelectControl height and down-arrow in InspectorControls. Details on this bug: WordPress/gutenberg#27166
running into the same issue multiple times. why isn't this fixed yet? why is this not high priority? currently we can't use multiple selects. trying combobox instead but please... fix your bugs! |
I was actually trying to find this issue again, so thanks @leadclown for your "contribution" 😜.
Some of my original comments did not consider the Design Guidelines for this component
Otherwise, I'm curious what Design folks think about the default height of the component with |
Sorry for the delay, this issue just popped onto my radar. @jasmussen Do we have any design guidance for this? It's clear that this |
Tricky one indeed. I can't think of a core reason to have this interface, I always found it fiddly, using modifier keys to add to a selection, and if you misclick you deselect all and have to start over. I don't have strong opinions, and there's likely a great deal of context I'm missing. What can I provide, designwise, to help move things forward? |
@jasmussen You are right, on desktop I prefer the formtokenfield component. On mobile this one does have a more native style UI, compared to formtokenfield |
I've discussed this with several components folks, and the general direction we converged on was something like:
@mediaformat Are you still available to rebase/tweak your PR (#43213)? If not, I'd be happy to take over 🙂 |
This has been broken for over two years and it's still not fixed? I mean, it hardly seems a massive change. |
Hi @mirka thanks for the follow up, I'll finish the PR! |
Describe the bug
The default select styles force displaying every select to a regular select field. However, a
select[multiple]
field shouldn’t be forced to have a drop-down arrow nor a maximum height of 30 pixels.To reproduce
Steps to reproduce the behavior:
SelectControl
withmultiple
attribute.Expected behavior
A
multiple
select field is not styled similar to a regular select field withoutmultiple
attribute.Editor version (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: