【问题标题】:Changing the active tab in material-ui from default pink to some other color将 material-ui 中的活动选项卡从默认粉色更改为其他颜色
【发布时间】:2019-09-21 19:02:59
【问题描述】:

这是我们需要更改活动标签颜色的代码框链接。 Code sample here

【问题讨论】:

    标签: reactjs material-ui


    【解决方案1】:

    您可以在样式中添加新的指标类

    indicator: {
      backgroundColor: "green"
    }
    

    然后覆盖 Tabs 组件中的指标类

    <Tabs value={value} onChange={this.handleChange} classes={{ indicator: classes.indicator }}>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-26
      • 1970-01-01
      • 1970-01-01
      • 2018-06-02
      • 2016-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多