-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Grid] Migrate to emotion #24395
[Grid] Migrate to emotion #24395
Conversation
mnajdova
commented
Jan 13, 2021
- I have followed (at least) the PR section of the contributing guide.
@material-ui/core: parsed: +0.33% , gzip: +0.34% |
docs/scripts/buildApi.ts
Outdated
.key as babel.types.Identifier).name; | ||
|
||
if(!className) { |
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.
We need this change in order to support classess that are in kebab-case like grid-xs-auto
for example
…-width screen size agnostic grid tests
@@ -12,14 +12,28 @@ export default function requirePropFactory(componentNameInError) { | |||
) => { | |||
const propFullNameSafe = propFullName || propName; | |||
|
|||
// eslint-disable-next-line react/forbid-foreign-prop-types |
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've got this failing test now https://app.circleci.com/pipelines/github/mui-org/material-ui/35659/workflows/8454c729-bc8f-49ba-8ae5-9fde972ca739/jobs/215603
Also, not sure how smart it is to disable this rule - https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md
I will revert the changes related to this and open a separte PR on this tomorrow.
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.
Also, not sure how smart it is to disable this rule - https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md
The eslint rule docs links https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types to the why. It's fine in our case. The block is wrapped with the process.env.NODE_ENV === 'production' condition.
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.
Alright, anyway will fix it separately to keep this PR clean