React-rte 富文本编辑器更改按钮颜色

问题描述

我无法更改工具栏按钮的背景颜色。请参考图片链接。目前按钮为浅灰色。

图片链接

image link

我的代码

 <div className="input-field">
                            <label id="together" className="borderline">Create Post</label>
                            <RichTextEditor
                                className="text-editor"
                                editorClassName="class-editor"
                                toolbarClassName= "tool-editor"
                                
                                toolbarConfig={toolbarConfig}
                                value={this.state.content}
                                onChange={this.onChange}
                            />
                        </div>

我的 CSS

.text-editor:focus-within{ 

  Box-shadow: 0 0px 0 0 orange !important;
  border: 2px solid orange !important;


}


div.input-field:focus-within .tool-editor{

  color: orange !important;
}

我做了什么

我已经使用了 className、editorClassName 和 toolbarClassName 的 css。但它们似乎都没有改变它的背景颜色。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)