124
rated 0 times
[
128]
[
4]
/ answers: 1 / hits: 23576
/ 7 Years ago, sat, november 25, 2017, 12:00:00
I added a Material-UI Date Picker in my React Single Page Application but I don't know how to change the header color.
I tried to change it from muiTheme pallete property but the header is the only color that remain the same:
var muiTheme = getMuiTheme({
palette: {
primary1Color: '#135DAE',
primary2Color: '#135DAE',
primary3Color: '#135DAE',
accent1Color: '#EF243A',
accent2Color: '#135DAE',
accent3Color: '#135DAE',
},
appBar: {
height: 50,
},
})
Here is the Date Picker's HTML code:
<DatePicker
hintText=Selected day
value={this.state.controlledDate.toDate()}
onChange={this.handleChange}
autoOk
/>
More From » html