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

ColorPicker: Use minimal variant for SelectControl #63676

Merged
merged 2 commits into from
Jul 18, 2024

Conversation

mirka
Copy link
Member

@mirka mirka commented Jul 17, 2024

Follow-up to #63265

What?

Replace the "unofficial" borderless SelectControl in ColorPicker with the official minimal variant.

Why?

We used to achieve this by passing a context value under the table, but now we have an official variant to achieve the same thing.

Also, I accidentally introduced a regression to this implementation in ColorPicker (the isBorderless context property needed to be moved under a __overrides property so it takes precedence), so this also fixes that.

Testing Instructions

See Storybook story for ColorPicker.

Screenshots or screencast

Before (regressed) After (correct)
Select has border Select is borderless

@mirka mirka added [Type] Code Quality Issues or PRs that relate to code quality [Package] Components /packages/components labels Jul 17, 2024
@mirka mirka self-assigned this Jul 17, 2024
@mirka mirka requested a review from ajitbohra as a code owner July 17, 2024 17:14
@mirka mirka requested a review from a team July 17, 2024 17:15
Copy link

github-actions bot commented Jul 17, 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: mirka <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>

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

Copy link
Contributor

@ciampo ciampo left a comment

Choose a reason for hiding this comment

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

Love the 🧹 !

🚀

Copy link
Member

@tyxla tyxla left a comment

Choose a reason for hiding this comment

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

Nice one! The left margin actually makes sense now 😅 ❤️

@mirka mirka merged commit c380af5 into trunk Jul 18, 2024
64 checks passed
@mirka mirka deleted the color-picker-minimal-select branch July 18, 2024 09:28
@github-actions github-actions bot added this to the Gutenberg 18.9 milestone Jul 18, 2024
carstingaxion pushed a commit to carstingaxion/gutenberg that referenced this pull request Jul 18, 2024
* ColorPicker: Use `minimal` variant for SelectControl

* Add changelog

Co-authored-by: mirka <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants