Material-ui-pickers: Control over theme / css classes

Created on 14 Nov 2017  路  3Comments  路  Source: mui-org/material-ui-pickers

Is there a way of altering the theme for specific elements, I understand that the background color of the date pickers toolbar is using theme.palette.primary[500], if the theme is light, but if I wanted to use a different color how would I go about doing this (aside from altering the palettes primary color)?

enhancement

Most helpful comment

@all 馃帀 We have such ability, but I didn`t know about that - just refer here is an example of how to override particular control

All 3 comments

There is no way currently.
I`ve known that some time we would need to implement the classes api for pickers.
Actually I cant promise you anything, but will try to implement that in one of beta releases)
If you want to open pull request, you are welcome)

As the variant you can override the whole theme of picker, by wrapping it in the custom MuiThemeProvider

@all 馃帀 We have such ability, but I didn`t know about that - just refer here is an example of how to override particular control

Was this page helpful?
0 / 5 - 0 ratings

Related issues

basselAhmed picture basselAhmed  路  3Comments

callmeberzerker picture callmeberzerker  路  3Comments

harvitronix picture harvitronix  路  3Comments

dandv picture dandv  路  3Comments

filipenevola picture filipenevola  路  4Comments