如何在反应中更改边框颜色?

时间:2019-04-16 15:10:38

标签: reactjs material-design material-ui

能否请您告诉我如何在ui ui材料中使边框变为红色? 这是我的代码 https://codesandbox.io/s/942m24jl0y

当前,当我聚焦输入字段时,它会以蓝色显示边框

enter image description here

我已经添加了这些行

underlineInput: {
        '&:before': {
            borderBottom: '1px solid #777777'
        },
        '&:after': {
            borderBottom: `2px solid #777777`
        },
        '&:hover:not($disabled):not($focused):not($error):before': {
            borderBottom: `2px solid #777777`
        }
    },

我想将边框颜色更改为red

1 个答案:

答案 0 :(得分:0)

bindsym {{{mod}}}+Return exec --no-startup-id i3-sensible-terminal ;; Opens a new Terminal bindsym {{{mod}}}+Shift+q exec --no-startup-id kill ;; Kills the focused window 添加到您的选择组件:classNamePrefix="my-select"

并将下一个样式添加到<Select classNamePrefix="my-select"/>文件styles.css