-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Adding TextFieldBase
component
#16043
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
ui/components/component-library/text-field-base/text-field-base.js
Outdated
Show resolved
Hide resolved
79138ed
to
fbdad7e
Compare
TextInputBase
component (WIP)TextInputBase
component
ui/components/component-library/text-field-base/text-field-base.stories.js
Outdated
Show resolved
Hide resolved
fbdad7e
to
4277417
Compare
Builds ready [61a10d3]
Page Load Metrics (2347 ± 90 ms)
highlights:storybook
|
Builds ready [dc06a8d]
Page Load Metrics (2244 ± 54 ms)
highlights:storybook
|
TextInputBase
componentTextFieldBase
component
Builds ready [ee76b6c]
Page Load Metrics (2378 ± 68 ms)
highlights:storybook
|
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.
Awesome
<TextFieldBase | ||
placeholder="MetaMask" | ||
rightAccessory={ | ||
// TODO: replace with ButtonIcon |
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.
👍
Explanation
Adding
TextFieldBase
component as a base for all text type components. Borrowed some architectural decisions from material uiArchitecture
The
TextFieldBase
component is made up of 2 components the wrapping<Box />
and<Text />
components. The Box contains all of the visual css and allows for right and left accessories to be placed outside of the html input element. The html input element is the root element of the Text component. In a previous PR I forwarded refs to both Box and Text to allow for focusing during the onClick on the wrapping Box component. This allows for the input to look focused while maintaining the left and right accessories to be focusable using the keyboard and maintaining accessibilitytabbing.mov
More Information
Fixes #15099
Figma link
Screenshots/Screencaps
text-field-base.mov
Manual Testing Steps
Pre-Merge Checklist
+ If there are functional changes: