flatlogic / react-material-admin

☄️React Material Admin is a React template built with Material-UI
https://flatlogic.com/admin-dashboards/react-material-admin/demo
MIT License
1.6k stars 559 forks source link

Fixbug 1.0 (Removing First Page Errors) #4

Closed prakhargvp closed 5 years ago

prakhargvp commented 5 years ago
[Error] index.js:1446 Warning: Material-UI: you are using the deprecated typography variants that will be removed in the next major release.
Please read the migration guide under https://material-ui.com/style/typography#migration-to-typography-v2
[Reference-Url]  https://material-ui.com/style/typography/#migration-to-typography-v2
[Error]
Warning: Material-UI: the `MuiListItem` component increases the CSS specificity of the `selected` internal state.
You can not override it like this: 
{
  "button": {
    "&:hover, &:focus": {
      "backgroundColor": "#F3F5FF"
    }
  },
  "selected": {
    "backgroundColor": "#F3F5FF !important",
    "&:focus": {
      "backgroundColor": "#F3F5FF"
    }
  }
}

Instead, you need to use the $ruleName syntax:
{
  "&$selected": {
    "backgroundColor": "#F3F5FF !important",
    "&:focus": {
      "backgroundColor": "#F3F5FF"
    }
  }
}
https://material-ui.com/customization/overrides#internal-states

[Reference-Url] https://material-ui.com/customization/overrides/#use-rulename-to-reference-a-local-rule-within-the-same-style-sheet

Error Screenshots

Screenshot from 2019-05-11 16-06-32

Screenshot After removing bug

Screenshot from 2019-05-11 19-07-40

kappaxbeta commented 5 years ago

The<Typography variant="headline" color="textSecondary"> makes problems for example in react-material-admin/src/pages/dashboard/Dashboard.js

The variant headline is not working

michaeldaineka commented 5 years ago

Hi! Thank you for submitting! but we already released new commit that deals with these problems.