0
React Single Pageアプリケーションで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
/>