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

Remove @material-ui/styles dependency #80

Merged
merged 1 commit into from
Nov 13, 2019

Conversation

kilemensi
Copy link
Member

@kilemensi kilemensi commented Nov 12, 2019

Description

@material-ui/styles is meant to be a standalone solution that can be used even when one is not using material ui components. In our case, we are using material ui components.

For this case, @material-ui provides @material-ui/core/styles which override @material-ui/styles and make sure there is a default theme provided, etc.: https://material-ui.com/styles/basics/#material-ui-core-styles-vs-material-ui-styles

Mixing these two will lead to issues such as className conflict, etc.
see: mui/material-ui#15867, mui/material-ui#8223, mui/material-ui#11628

Hence, this PR switches HURUmap UI to using @material-ui/core/styles exclusively.

Related to: https://www.pivotaltracker.com/story/show/169497721

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots

N/A

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Copy link
Contributor

@KhadijaMahanga KhadijaMahanga left a comment

Choose a reason for hiding this comment

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

Nice one 💯

@kilemensi kilemensi merged commit e9b5e32 into master Nov 13, 2019
@kilemensi kilemensi deleted the chore/remove_material_ui_styles_dependency branch November 13, 2019 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants