Skip to content

Conversation

@mirka
Copy link
Member

@mirka mirka commented Jun 17, 2022

🚧 Currently on hold to reassess approach 🚧

Part of #39397

What?

Downsize the 40px inputs in ColorPicker to the new default 36px.

We can land these size changes immediately without coordination via __next prop, since they are already in an inconsistent state.

Why?

As part of the effort to move toward consistent component sizes.

Testing Instructions

  1. npm run storybook:dev
  2. See the story for ColorPicker. The RGB/HSL/HEX inputs should all be at 36px height.

@mirka mirka added the [Package] Components /packages/components label Jun 17, 2022
@mirka mirka requested a review from ajitbohra as a code owner June 17, 2022 17:37
@mirka mirka self-assigned this Jun 17, 2022
Comment on lines -45 to -52
// All inputs should be the same height so this should be changed at the component level.
// That involves changing heights of multiple input types probably buttons too etc.
// So until that is done we are already using the new height on the color picker so it matches the mockups.
const inputHeightStyle = `
&&& ${ Input } {
height: 40px;
}`;

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll go ahead and remove these 40px styles without moving them to a large size variant, since it's just a hack anyway. We can first add a large size variant to InputControl once we're ready to introduce large variants.

@mirka mirka requested a review from ciampo June 17, 2022 17:42
@ciampo ciampo added the [Type] Enhancement A suggestion for improvement. label Jun 21, 2022
@ciampo
Copy link
Contributor

ciampo commented Jun 21, 2022

🚧 Currently on hold to reassess approach 🚧

Sounds good — just ping once we have a new approach and this PR is ready for review again :)

@mirka
Copy link
Member Author

mirka commented Jun 21, 2022

New plan: Instead of removing the 40px hack, I will be switching it to a clean implementation via size props on the underlying input controls. On hold until I add a large size variant on NumberControl.

@mirka
Copy link
Member Author

mirka commented Jun 28, 2022

Closing in favor of #42002

@mirka mirka closed this Jun 28, 2022
@johnbillion johnbillion deleted the color-picker-36px branch April 22, 2025 10:21
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