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
[docs] Improve FormControl duplication warning #22823
Conversation
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.
Thanks for the PR. Could you fix CI by committing the changes introduced by yarn docs:api
and update the tests failing when running yarn test:unit
?
@eps1lon update PR, all test passed |
@@ -38,7 +38,7 @@ You can find one composition example below and more going to [the demos](/compon | |||
</FormControl> | |||
``` | |||
|
|||
⚠️Only one input can be used within a FormControl. | |||
⚠️ Only one `InputBase` can be used within a FormControl because it create visual inconsistencies. |
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.
Do we have a concrete example for this? Ideally we could list all so that people searching by problem find the cause.
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.
In #22535 (comment), we have:
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.
Can we describe this pattern in words?
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.
do i need to add this to docs?
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.
That'd be nice. "visual inconsistencies" is not helpful. Either we describe examples or we remove it.
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 get it from comment, I think to delete this will be good decision if we have no other variants
Improved description proposed
@talgautb It's a great first pull request on Material-UI 👌🏻. Thank you for working on it! |
Thanks for improving the docs! |
Closes #22535