-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
size props for textField #20477
Comments
|
@mohamedtijani Make sure you update to the latest version. |
This needs definitely a critical review This looks not ok. Same applies to the textfield demos. They fail to illustrate the difference between margin and size. |
@eps1lon What solution would you propose for v5? What do you think of keeping the size demo and updating the layout demo to use something else than the margin prop (removing the prop)? |
I need to dive into this first. It isn't clear what problem TextField#size is trying to solve. In any case having a separate size and layout demo makes little sense. These concerns are the same. |
@eps1lon There is definitely an overlap. I believe the inputs can be used in a wide variety of contexts. For instance here a small text field in Google Docs to leave a comment: Benchmarking with Bootstrap is interesting: https://getbootstrap.com/docs/4.4/components/forms/#horizontal-form-label-sizing. Maybe we still need this margin prop. What if we changed the implementation to have these two props isolated? Each with their dedicated impact? Meaning developers could use:
|
the problem is resolved |
I believe we have solved the issue: https://next.material-ui.com/components/text-fields/#sizes. |
the props size for textField not working
this is the code for 2 textField
the "first name" field with size="small"
The text was updated successfully, but these errors were encountered: