-
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
SelectControl: Fix multiple
prop styling
#47893
Conversation
Size Change: +11.4 kB (+1%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in dde2c96. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4144513799
|
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.
packages/components/src/select-control/styles/select-control-styles.ts
Outdated
Show resolved
Hide resolved
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.
LGTM 🚀
* SelectControl: Fix `multiple` prop styling * Update readme * Add changelog * Refactor padding code * Add comment * Allow overflow scrolling when `multiple` * Update snapshot
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: a4e7a4b |
Fixes #27166
Continuation of #43213 (props @mediaformat!)
What?
Fixes the broken styling when the
multiple
prop is enabled on SelectControl.Why?
Although the
multiple
select never appears in Gutenberg UI, it is an officially supported prop so it should be at least minimally usable.How?
multiple
is enabled.FormTokenField
orCheckboxControl
instead.Testing Instructions
npm run storybook:dev
and see the story for SelectControl.multiple
prop. The entire select with all the options should be visible. It should look good in all size variants.multiple
prop is disabled.Screenshots or screencast