Hide ion input validation border in IONIC-3 [duplicate]

好久不见. 提交于 2019-12-04 12:10:15

If you want for all input fields:

You can override the following scss variables which are set by default for android material design:

$text-input-highlight-color-valid:transparent;
$text-input-highlight-color-invalid:transparent;

For individual elements you can have a custom class in your corresponding scss class and then set border-bottom for ng-valid, ng-invalid classes with border-bottom-color.

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