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

[Box] Use the default theme #15019

Merged
merged 3 commits into from
Mar 23, 2019
Merged

Conversation

apanizo
Copy link
Contributor

@apanizo apanizo commented Mar 22, 2019

Description
This PR just changes the styled function on Box component in material-ui core. Basically, this PR has been created because using the Box component on test environments (Storybook, JEST Snapshots...) cause raised an exception due to defaultTheme was undefined.

It closes #15005

@mui-pr-bot
Copy link

mui-pr-bot commented Mar 22, 2019

No bundle size changes comparing f9896bc...b771d35

Generated by 🚫 dangerJS against b771d35

@oliviertassinari oliviertassinari added new feature New feature or request component: Box The React component. labels Mar 22, 2019
packages/material-ui/src/Box/Box.js Show resolved Hide resolved
@eps1lon eps1lon dismissed their stale review March 23, 2019 10:51

does not apply to relative imports

@apanizo
Copy link
Contributor Author

apanizo commented Mar 23, 2019

Well, I know it is not a big deal nor super complex, but this is my first PR in a big open source project!

Thanks for reviewing it so fast! Will try to collaborate more in the incoming weeks/months.

@oliviertassinari oliviertassinari changed the title [Box] Use core/styled fn [Box] Use the default theme Mar 23, 2019
@oliviertassinari oliviertassinari merged commit 894a13a into mui:next Mar 23, 2019
@oliviertassinari
Copy link
Member

@apanizo It's a great first pull request on Material-UI 👌🏻. Thank you for working on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Box The React component. new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Box] Box - defaultTheme undefined when running tests
4 participants