-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[docs-infra] Remove display: flex
from SectionTitle
#42979
[docs-infra] Remove display: flex
from SectionTitle
#42979
Conversation
Netlify deploy previewhttps://deploy-preview-42979--material-ui.netlify.app/ Bundle size report |
display: 'flex', | ||
alignItems: '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.
Do you have any why these attributes have been added in? 🤔
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 do not manage to find when exactly we added it, because of the migration to the @mui/docs
which pertubate the git blame
From what I remember, we struggled to have nice vertical alignment between the "anchor link", "comment link", and the title constent. But seems it's working well. So I suspect a DOM modification we did and forgot to remove this display flex
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 clarifying. 👌
Hopefully, this doesn't break some other sections that we are not aware of. 🙈
Created from: mui/mui-x#13543 (comment)
Example in MUI Core
Before
https://next.mui.com/material-ui/migration/v5-style-changes/#%E2%9C%85-update-makestyles-import
After
https://deploy-preview-42979--material-ui.netlify.app/material-ui/migration/v5-style-changes/#%E2%9C%85-update-makestyles-import