Directory

CustomSelectControlV2: Support disabled in item types by tyxla · Pull Request #60896 · WordPress/gutenberg · GitHub
Skip to content
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

CustomSelectControlV2: Support disabled in item types #60896

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

tyxla
Copy link
Member

@tyxla tyxla commented Apr 19, 2024

What?

This PR adds support for disabled items in CustomSelectControlV2 types.

Why?

CustomSelectControlV2 currently supports setting items to be disabled since Ariakit supports it too. However, the item types don't reflect that.

Related: #55023

How?

We're adding disabled as an expected prop by the CustomSelectControlV2.Item types.

Testing Instructions

Add a disabled to one of the items in the CustomSelectControlV2 storybook and verify it doesn't trigger a TS error.

Testing Instructions for Keyboard

None

Screenshots or screencast

None

@tyxla tyxla added [Type] Enhancement A suggestion for improvement. [Package] Components /packages/components labels Apr 19, 2024
@tyxla tyxla requested review from jsnajdr and a team April 19, 2024 10:55
@tyxla tyxla self-assigned this Apr 19, 2024
@tyxla tyxla requested a review from ajitbohra as a code owner April 19, 2024 10:55
Copy link

github-actions bot commented Apr 19, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: tyxla <tyxla@git.wordpress.org>
Co-authored-by: retrofox <retrofox@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@tyxla tyxla force-pushed the add/custom-select-control-disabled-type branch from cc6dbc7 to 9d821f1 Compare April 19, 2024 11:09
Copy link
Contributor

@retrofox retrofox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Copy link
Member

@mirka mirka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Let's also update the readme.

Co-authored-by: Lena Morita <lena@jaguchi.com>
@tyxla tyxla merged commit fb6d46f into trunk Apr 19, 2024
61 checks passed
@tyxla tyxla deleted the add/custom-select-control-disabled-type branch April 19, 2024 15:00
@github-actions github-actions bot added this to the Gutenberg 18.2 milestone Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants