-
-
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
[docs][material-ui][Tabs] Improve the Basic Tabs demo #42374
Conversation
Netlify deploy previewhttps://deploy-preview-42374--material-ui.netlify.app/ Bundle size report |
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.
Okay, this looks fine to me. Argos detected the change: https://app.argos-ci.com/mui/material-ui/builds/28226/91645046, which is expected. I'd like others' opinions on this. For reviewers, please see the discussion in #42253. And also the discussion in issue #21015.
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 code looks OK. The rendered text now has a different font, but it's actually OK, as it's more inline with Material Design (and less with our custom theme).
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
A continuation of #42253
To prevent the validateDOMNesting warning that occurs when users place certain elements inside Tabs, we can remove the Typography component from BasicTabs demo. Users don't realize Typography renders a
p
tag, leading to warnings when they copy and paste the demo code into their applicationsThe
p
tag can only contain inline elements. This means that placing a div tag inside it is inappropriate since the div tag is a block element. Improper nesting can cause issues such as rendering extra tags, which can affect the JavaScript and CSS. This is why we encounter the validateDOMNesting warning #21015