-
-
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
[Typography] Migrate styles to emotion #23841
Merged
DanailH
merged 34 commits into
mui:next
from
DanailH:feature/Typography-switch-to-emotion
Dec 18, 2020
Merged
Changes from 6 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
8bdd48c
First draft for typography migration to emotion
DanailH e844fc4
Fix formatting
DanailH 565cd4f
fixes
mnajdova 2f95356
fixes
mnajdova 8ae6f0d
fixed tests
mnajdova 1d3cc1d
prettier
mnajdova 0cad18a
default props
mnajdova eb9e493
fix build
mnajdova 5540769
fixes
mnajdova 859ca7f
Merge branch 'next' into feature/Typography-switch-to-emotion
mnajdova f8c9934
prettier
mnajdova 158a5ff
Check if color has "text" to cover more colors
DanailH 1e8567f
Merge branch 'next' of github.com:mui-org/material-ui into feature/Ty…
DanailH f518bd0
Update docs/scripts/buildApi.ts
mnajdova 8da0c44
Fix pr comments
DanailH 925f180
checks
DanailH 9910160
Merge branch 'feature/Typography-switch-to-emotion' of github.com:Dan…
DanailH e89016f
add overrideResolver
DanailH f624b0d
Update packages/material-ui/src/Typography/Typography.js
mnajdova a439583
overridesResolver & prettier
mnajdova 290dd31
formatting
mnajdova 4a70683
Merge branch 'next' into feature/Typography-switch-to-emotion
mnajdova a656da8
docs:api
mnajdova d9d73ed
Merge branch 'next' into feature/Typography-switch-to-emotion
mnajdova 5c5e764
updated tests
mnajdova 3280345
Fix ttp not detecting input props
eps1lon 25ec283
comment
mnajdova 66a81e8
prettier
mnajdova 40b9ec5
reverted describeConformance test changes
mnajdova c42898f
examples updated
mnajdova d764665
added migration guide
mnajdova e73af0f
sorted props
mnajdova 928f85d
Merge branch 'next' into feature/Typography-switch-to-emotion
mnajdova ff81d3e
updated test
mnajdova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 had conflict here with the
as
prop from emotion.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 think we should document the props that are now intercepted by emotion. It is a breaking change if you were passing these through. Maybe add a section in the changelog that only lists affected components and once we migrated all we just give the general advise that if you had
<MuiComponent component={SomeOtherComponent} emotionProp1 emotionProp2 />
, that these are no longer passed toSomeOtherComponent
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.
Will we need to update the Next.js and Gatsby examples for the conflict?
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.
@eps1lon will add an entry in the
migration-v4.md
for it. @oliviertassinari good call, let me check if the examples need to be updated.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.
Added migration entry - d764665 we can extend it with more props if there are any. At this moment this is the only one I could notice not being propagated.
Both
nextjs
examples have been updated. I didn't noticed anything worth updating in the gatsby examples.