Skip to content
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

[AppBar] Migrate to emotion #24439

Merged
merged 2 commits into from
Jan 16, 2021
Merged

[AppBar] Migrate to emotion #24439

merged 2 commits into from
Jan 16, 2021

Conversation

povilass
Copy link
Contributor

@povilass povilass commented Jan 15, 2021

One of #24405

@mui-pr-bot
Copy link

mui-pr-bot commented Jan 15, 2021

@material-ui/core: parsed: +0.17% , gzip: +0.18%

Details of bundle changes

Generated by 🚫 dangerJS against 951e966

@povilass
Copy link
Contributor Author

@mnajdova can you help me with this it tell me that I have to run yarn proptypes? but it removes className.

elevation={4}
className={clsx(
classes.root,
classes[`position${capitalize(position)}`],
classes[`color${capitalize(color)}`],
{
'mui-fixed': position === 'fixed', // Useful for the Dialog
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may be able to get rid of this now that we have utility classes, but let's keep it as is to keep the PR focused to the migraiton

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -6,16 +6,15 @@
"type": {
"name": "enum",
"description": "'default'<br>&#124;&nbsp;'inherit'<br>&#124;&nbsp;'primary'<br>&#124;&nbsp;'secondary'<br>&#124;&nbsp;'transparent'"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully the changes on https://github.com/mui-org/material-ui/pull/24439/files#r558589220 will help us fix these regressions

@povilass
Copy link
Contributor Author

Don't know why but after running yarn proptypes other files also regenerated with few differences.
image

@povilass
Copy link
Contributor Author

Well, some dark magic worked after moving all properties as separate variable :D

@povilass
Copy link
Contributor Author

Ok, one done more to go.

Copy link
Member

@mnajdova mnajdova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Thanks!

@oliviertassinari oliviertassinari added the component: app bar This is the name of the generic UI component, not the React module! label Jan 16, 2021
@mnajdova mnajdova merged commit 85b1611 into mui:next Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: app bar This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants