-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
fix(Input): fix misalignment and styling states #10989
fix(Input): fix misalignment and styling states #10989
Conversation
✅ ethereum-org-website-dev deploy preview ready
|
19c0897
to
c0553b1
Compare
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.
Nice, thanks @TylerAPfledderer
The input used in the languages page is not showing the close button for some reason:
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.
@TylerAPfledderer now it is showing the close button in the languages input but once you press the first key, it loses focus and you can't keep typing
Peek.2023-08-29.11-37.mp4
fab418a
to
e2456e1
Compare
@pettinarip needed to persist the rendering of the close button in the DOM and hide it by using the This maintains the rendering of the |
docs/ds-implementation.md
Outdated
├── index.tsx | ||
├── ComponentA.stories.tsx | ||
└── // Any other files as applicable (utils, child components, useHook, etc.) | ||
└── ComponentA/ |
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.
Formatting regression that bled through the diff
type InputProps = NoIconProps | WithIconProps | ||
|
||
function Input(props: NoIconProps): JSX.Element | ||
function Input(props: WithIconProps): JSX.Element | ||
function Input(props: InputProps) { |
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.
Interesting. What would be the benefit of doing this overload? since function Input(props: InputProps)
already handles both cases NoIconProps | WithIconProps
.
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.
Looks great @TylerAPfledderer 🎉
cc @nloureiro
Description
This PR primarily addresses the misalignment of the
Input
component field, and in addition fixes minor styling issues in the theme.size
options, height of the input field needed to be declared with a CSS Var used in the default theme so padding can be appropriately set through theInputGroup
when an icon is rendered.Related Issue
Closes #10740