The entire material-ui component should be displayed inside the <MuiThemeProvider></MuiThemeProvider> , so we need to wrap the top component (or at least any parent component) in the material-ui MuiThemeProvider .
The problem is that your Dialog is outside the MuiThemeProvider tag, insert a dialog and inside it, it should work.
Write this:
<div> <MuiThemeProvider muiTheme={muiThemebtn}> <RaisedButton label={Lang.AddUser} onTouchTap={this.openModal} primary={true} display='none' icon={<ContentAddBox color={darkBlack} style={{backgroundColor:'#e3e3e3'}}/>} /> <Dialog title="Scrollable Dialog" actions={actions} modal={false} open={this.state.open} onRequestClose={this.handleClose} autoScrollBodyContent={true} > Dialog Text </Dialog> </MuiThemeProvider> </div>
Sentence:
If you use ui material elements in many components, then you do not need to put the MuiThemeProvider tag on each page instead of placing it on your home page or better placing it on index.js, where we used to determine all the routes, for example:
const muiThemebtn = getMuiTheme() ReactDOM.render(( <MuiThemeProvider muiTheme={muiThemebtn}> <Router history={hashHistory}> <Route path="/" component={comp1}> <Route path="/abc" component={comp2}/> </Route> </Router> </MuiThemeProvider> ), document.getElementById('app'));
source share