如何改变按钮的颜色?

时间:2016-09-02 17:44:21

标签: material-design material-ui

我阅读了文档,我能够改变其他人的颜色但却无法改变按钮中标签的颜色。到目前为止,这是我的代码:

 const muiTheme = getMuiTheme({
    datePicker: {
    calendarYearBackgroundColor: lightBlue800,
    calendarTextColor: "white",
    selectColor: lightBlue800,
    color: lightBlue800
}})

a sample

1 个答案:

答案 0 :(得分:0)

尝试使用timePicker

const muiTheme = getMuiTheme({
    timePicker: {
    calendarYearBackgroundColor: lightBlue800,
    calendarTextColor: "white",
    selectColor: lightBlue800,
    color: lightBlue800
}})

我仍然无法更改我的按钮文字颜色。我假设它是因为我独立设置了flatButton颜色。所以要小心。