reactjs - why two border showing on hover of input field?
问题描述
could you please tell me why two border showing on hover of input field ? see my image
I am using react+ material
with react .
here is my code
https://codesandbox.io/s/kxx08jo487
I want only one border red
.I tried like that
root: {
'&>div': {
'&:hover': {
borderBottom: '1px solid red',
}
},
},
I take help from this link https://material-ui.com/customization/overrides/
解决方案
Hi joy since Material UI has been evolving rapidly. There are drastic changes in API being reflected in docs. We use formLabel inside formControl to take leverage of JSS.
Here is the working code: Border Color Customised
推荐阅读
- functional-programming - 为什么这个函数应该返回 false 时返回 true?
- java - Android - 无法使用 Retrofit2 获取 JSON
- java - 使用 CardLayout 时如何将 addWindowListener 添加到所有面板?
- jquery - 用 textarea 聚焦但光标不可见
- python - How to make subplots to show a list of legends
- android - 安卓工作室 3.1.3;没有错误;Logcat 扭曲的内容表示
- sql - 如何通过在 oracle 中提供子元素 ID 来获取所有父元素?
- mongodb - 如何在 mongodb 中使用 $in 运算符加入两个集合?
- php - 如何在 symfony 2.8 中访问特定帖子字段的值
- android - 我在 android 中开发了一个一对一的聊天应用程序。如果我杀死了一个应用程序,那么我不会收到通知。如何解决该程序化问题