remove shadow from ion-searchbar in ionic 3

两盒软妹~` 提交于 2019-12-23 02:57:12

问题


I need to remove the border from ion-search bar . I tried the following code in variable.scss but got no luck.I am pretty new in ionic so please tell me in details.

 .searchbar-input {
      -webkit-box-shadow: 0 2px 2px 0 rgba(255, 255, 255, 1),
        0 3px 1px -2px rgba(255, 255, 255, 1), 0 1px 5px 0 rgba(255, 255, 255, 1);
      box-shadow: 0 2px 2px 0 rgba(255, 255, 255, 1),
        0 3px 1px -2px rgba(255, 255, 255, 1), 0 1px 5px 0 rgba(255, 255, 255, 1);
    }

回答1:


Is hard to figure out a solution without the output of your code, you might try this:

.searchbar-input {
    border: 0 !important;
    box-shadow: none !important;
}


来源:https://stackoverflow.com/questions/51028440/remove-shadow-from-ion-searchbar-in-ionic-3

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