Repository navigation
[docs] Update storybook section in migration to v5 docs - #28800
Conversation
eps1lon
left a comment
There was a problem hiding this comment.
Didn't we forget in the Emotion migration that you can't mix an Emotion theme and a MUI theme i.e. ThemeProvider from @mui overrides the ThemeProvider from Emotion?
In the case of storybook, it seems like it could (from one of emotion team, #24282 (comment)). I will add in the description that this is a workaround and might not work in all cases. Currently, I don't have a better solution that this. This PR is to make the workaround cover the docs tab in storybook. |
|
Can you share a repository showing that the themes via Emotion and styled-engine are indeed independent? |
Here is the repository: https://github.com/siriwatknp/mui-v5-storybook-repro |
Could you point me to the specific file that shows I can mix both theme providers and they're not overriding each other? |
I am not really sure what else to verify that "they're not overriding each other" apart from the docs tab is working with the setup in the link. |
…migration-doc-storybook
from #28716
Preview: https://deploy-preview-28800--material-ui.netlify.app/guides/migration-v4/#storybook-emotion-with-v5