-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
CustomSelect
: Add WordPressComponentsProps
#56998
Conversation
Flaky tests detected in f5fb013. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7199502214
|
I initially thought of just adding to the child CustomSelectItem - however, the legacy CustomSelectControl can include |
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.
Good to be merged after adding a CHANGELOG entry 🚀
* CustomSelectControl v2: Add WordPressComponentsProps * Add WordPressComponentProps as button to CustomSelect * Update changelog
What?
Part of #55023
Adding
WordPressComponentProps
for more flexibility in adding props.Why?
To be able to add HTML attributes to CustomSelect and CustomSelectItem, the child items of CustomSelect. This will also be useful when adapting this to the legacy version.
How?
Adding
WordPressComponentProps
to inherit html attributes from adiv
elementTesting Instructions
button
toCustomSelect
i.e.onBlur
CustomSelectItem
i.e.className