-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: Downsize inputs to 36px #41795
Conversation
// 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; | ||
}`; | ||
|
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.
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.
Sounds good — just ping once we have a new approach and this PR is ready for review again :) |
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 |
Closing in favor of #42002 |
🚧 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
npm run storybook:dev
ColorPicker
. The RGB/HSL/HEX inputs should all be at 36px height.