-
Notifications
You must be signed in to change notification settings - Fork 117
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
ui v2: text field #701
ui v2: text field #701
Conversation
d1d72ad
to
120bcbf
Compare
120bcbf
to
abf84ab
Compare
Co-authored-by: Derek <dschaller@users.noreply.github.com>
frontend/packages/core/src/Input/stories/text-field.stories.tsx
Outdated
Show resolved
Hide resolved
| "onChange" | ||
| "onFocus" | ||
| "onKeyDown" |
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.
Is it worth having both onChange
and onKeyDown
? I'm trying to think of a use case where someone would want to specify two different handlers
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.
you're using onKeyDown in the resolver so i kept it, wasn't sure of implication of changing it and didn't want to change interfaces beyond style props
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.
👍 we should figure out a single callback but it can be done in a separate PR
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.
pending removing commented out code
Co-authored-by: Derek <dschaller@users.noreply.github.com>
Description
Implement new text field design with the exception of the "clear" control, which requires some more though and potentially refactoring to standardize on controlled vs uncontrolled components.
Testing Performed
See stories.