Specifing a hover border color on a textfield using a custom theme with Material UI

假如想象 提交于 2019-12-02 17:41:39

问题


Having trouble finding documentation on how to change the default border color of an outlined Textfield on hover using a custom theme on Material ui.


回答1:


MuiOutlinedInput: {
      root: {
        "&:hover:not($disabled):not($focused):not($error) $notchedOutline": {
          border: "2px solid",
          borderColor: "yellow"
        }
      }
    }

Reference Example



来源:https://stackoverflow.com/questions/52916042/specifing-a-hover-border-color-on-a-textfield-using-a-custom-theme-with-material

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!