-
Notifications
You must be signed in to change notification settings - Fork 0
feat(CounterField): new component #335
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
base: release/3.0.0
Are you sure you want to change the base?
feat(CounterField): new component #335
Conversation
GaroGabrielyan
left a comment
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.
The CounterField component must accept decimal numbers and 'e'.
| // INPUT CONTAINER - Horizontal layout for buttons and text field | ||
| &__inputContainer { | ||
| display: flex; | ||
| align-items: center; |
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 don't need align-items: center; by default input and button has same height.
|
|
||
| // INPUT - Text field for manual value entry | ||
| &__input { | ||
| flex: 0 0 auto; |
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.
Why we need flex: 0 0 auto;?
| </div> | ||
|
|
||
| {helperText && ( | ||
| <div className="counterField__infoContainer"> |
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 think this is unnecessary wrapping.
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.
Other components using helpertext do it exact same way.
…onents into feature/add-counter-field-component
…construct/gene-ui-components into feature/add-counter-field-component
…counter-field-component
…c digits also when controlled
…onents into feature/add-counter-field-component
…construct/gene-ui-components into feature/add-counter-field-component
…onents into feature/add-counter-field-component
…ovided with min\max
Chromatic Build Summary
Build URL: https://www.chromatic.com/build?appId=66daee7859a843dd87bfb3d7&number=1059
Storybook URL: https://66daee7859a843dd87bfb3d7-uyjykdyzui.chromatic.com/