[英]How to remove the border color from the drop down border-bottom?
I'm trying to remove the border color from the drop down border-bottom: 1px solid rgba(0, 0, 0, 0.42);
我正在尝试从下拉的
border-bottom: 1px solid rgba(0, 0, 0, 0.42);
删除边框颜色border-bottom: 1px solid rgba(0, 0, 0, 0.42);
When I debugged I found its coming from this class MuiInput-underline-2593 当我调试时,我发现它来自此类MuiInput-underline-2593
But the CSS class MuiInput-underline-2593:before
is coming from the framework. 但是CSS类
MuiInput-underline-2593:before
来自框架。
Can you guys tell me how to fix it. 你们能告诉我如何解决它吗? So that in future I can fix it myself.
这样将来我就可以自己修复它。 Providing my relevant code snippet and sandbox link below
在下面提供我的相关代码段和沙箱链接
https://codesandbox.io/s/4x9lw9qrmx https://codesandbox.io/s/4x9lw9qrmx
MuiInput-underline-2593:before {
left: 0;
right: 0;
bottom: 0;
content: "\00a0";
position: absolute;
transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
border-bottom: 1px solid rgba(0, 0, 0, 0.42);
pointer-events: none;
}
<Select
className={classes.queryBuilderContainerItem}
classes={classes}
styles={selectStyles}
options={this.state.suggestions}
components={components}
value={this.state.single}
onChange={this.handleChange("network")}
placeholder="Search a to do"
/>
Basically you can just delete the whole CSS part it should be gone. 基本上,您可以删除应该删除的整个CSS部分。
so your code would look like: 因此您的代码如下所示:
<Select
className={classes.queryBuilderContainerItem}
classes={classes}
styles={selectStyles}
options={this.state.suggestions}
components={components}
value={this.state.single}
onChange={this.handleChange("network")}
placeholder="Search a to do"
/>
You can add your own style/class to the element you need and set border-bottom
rule with an !important
suffix. 您可以将自己的样式/类添加到所需的元素,并使用
!important
后缀设置border-bottom
规则。 This will override the rule from your framework. 这将覆盖您框架中的规则。
.your-class{
border-bottom: 0px !important;
}
Under the file named AutoCompleteComponent.js check queryBuilderContainer and comment or delete the border shown. 在名为AutoCompleteComponent.js的文件下,检查queryBuilderContainer并注释或删除显示的边框。 Hope this helps.
希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.