Skip to content

Commit

Permalink
Merge pull request #2527 from woshiwenzhijie/master
Browse files Browse the repository at this point in the history
[Theme] Update theme-manager.js
  • Loading branch information
oliviertassinari committed Dec 16, 2015
2 parents c8a5d45 + acf8ba2 commit 478819c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/styles/theme-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,12 @@ export default {
return this.getMuiTheme(newRawTheme);
},

//function to modify the zIndex of the raw theme. This function recomputes
//the MUI theme and returns it based on the new raw theme.
modifyRawThemeZIndex: function(muiTheme, newZIndexKeys) {
let newZIndex = Extend(muiTheme.rawTheme.zIndex, newZIndexKeys);
let newRawTheme = update(muiTheme.rawTheme, {zIndex: {$set: newZIndex}});
return this.getMuiTheme(newRawTheme);
},

};

0 comments on commit 478819c

Please sign in to comment.