I had created the input type and created the border the border for that box,but when i had clicked in that button it is displaying the default color but i should not display the default color Below is the displayed image:
Below is my html code:
<ion-item class="Credit">
<ion-input type="number"
placeholder="Credit Card number"
class="form-control"></ion-input>
</ion-item>
Below is my css code:
.Credit{
top: 20px;
border-radius: 10px;
width: 350px;
display: block;
margin-left: auto;
margin-right: auto;
background: url(../assets/images/credit_card.png);
background-position:right;
background-size: 45px;
background-repeat:no-repeat;
border:1px solid #DADADA;
margin-bottom: 10px;
}
Try
.Credit:focus{outline: none;}
Just add another line of css
You can try by overriding Ionic's style rules, because the same will also happen when the input is valid or invalid:
UPDATE
A more Ionic way to solve this, would be by adding the following in the
variables.scss
file: