Skip to content

Conversation

@mirka
Copy link
Member

@mirka mirka commented Nov 18, 2024

Prerequisite of #66898

What?

Updates the heights of the color format select and copy button in the ColorPicker component, so they both use the compact size.

Why?

  • The default size will be deprecated for SelectControl.
  • Using the compact size for the copy button is more aligned with the button size guidelines, and matches the latest component spec in Figma (cc @WordPress/gutenberg-design for awareness, no action necessary).

Testing Instructions

See the Storybook story for ColorPicker.

Screenshots or screencast

Before

CleanShot.2024-11-19.at.07.54.10.mp4

After

CleanShot.2024-11-19.at.07.54.49.mp4

@mirka mirka added [Type] Enhancement A suggestion for improvement. [Package] Components /packages/components labels Nov 18, 2024
@mirka mirka self-assigned this Nov 18, 2024
@mirka mirka requested a review from ajitbohra as a code owner November 18, 2024 23:04
@github-actions
Copy link

github-actions bot commented Nov 18, 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: 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
Member Author

Choose a reason for hiding this comment

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

Removing these button styles since they are no longer needed.

>
<CopyButton
size="small"
<Button
Copy link
Member Author

Choose a reason for hiding this comment

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

🚨 Unlabeled button alert, fix proposed in #67094.

@mirka mirka requested a review from a team November 18, 2024 23:37
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.

LGTM, nice cleanup @mirka 🚀

@mirka mirka merged commit d478c08 into trunk Nov 19, 2024
@mirka mirka deleted the color-picker-cmp-size branch November 19, 2024 16:52
@github-actions github-actions bot added this to the Gutenberg 19.8 milestone Nov 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.

3 participants