0
React Single Page Application에 Material-UI Date Picker를 추가했지만 헤더 색상을 변경하는 방법을 모르겠습니다. 나는 muiTheme 파레트 속성에서 변경하려고하지만 헤더는 동일하게 유지하는 유일한 색상 : 여기 Material-UI Date Picker의 헤더 색상 변경
var muiTheme = getMuiTheme({
palette: {
primary1Color: '#135DAE',
primary2Color: '#135DAE',
primary3Color: '#135DAE',
accent1Color: '#EF243A',
accent2Color: '#135DAE',
accent3Color: '#135DAE',
},
appBar: {
height: 50,
},
})
이 날짜 선택기의 HTML 코드 :
<DatePicker
hintText="Selected day"
value={this.state.controlledDate.toDate()}
onChange={this.handleChange}
autoOk
/>