Open picocodes opened 1 year ago
Oof, this is indeed a mistake, and something that cannot be easily fixed in a backward compatible way 😅
I can only suggest things like using a wrapper div, or a parent selector like .components-base-control:has(.my-select-control-class)
.
Description
Other input controls apply the custom CSS classes to the parent BaseControl component. SelectControl, on the other hand, applies the custom CSS classes to the inner InputBase component.
This makes it impossible to apply custom CSS styles.
Step-by-step reproduction instructions
Check https://github.com/WordPress/gutenberg/blob/trunk/packages/components/src/select-control/index.tsx#L98
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes