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

Update MUI v4 #793

Merged
merged 5 commits into from
Feb 17, 2021
Merged

Update MUI v4 #793

merged 5 commits into from
Feb 17, 2021

Conversation

JF-Cozy
Copy link
Contributor

@JF-Cozy JF-Cozy commented Feb 16, 2021

see commit message

With MUI V4, it is possible to generate deterministic class names.
In the case of multiple react roots, it is necessary to disable this
feature. Since we have the cozy-bar root, we need to disable the
feature.

https://material-ui.com/styles/api/#stylesprovider

Otherwise generated class names clash with others and some text become
the wrong color during the usage of the app (especially visible on
mobile).
@@ -119,7 +119,7 @@ describe('ContactForm', () => {
}

Object.keys(fields).forEach(fieldName => {
const candidates = form.find(`TextField[name='${fieldName}']`)
const candidates = form.find(`ForwardRef(TextField)[name='${fieldName}']`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Mouais, OK, mais je pense qu'il faut plutot utiliser @testing-library/react dans ces cas là. C'est pas l'objet de la PR en soi, donc OK.

Copy link
Contributor Author

@JF-Cozy JF-Cozy Feb 17, 2021

Choose a reason for hiding this comment

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

Ok je fais une issue pour ne pas l'oublier : #795

@JF-Cozy JF-Cozy merged commit 350b5f2 into master Feb 17, 2021
@delete-merged-branch delete-merged-branch bot deleted the feat/muiV4 branch February 17, 2021 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants