1

I want to disable the blu border line in IonInput of IonicV2.

I try to add some CSS from the net but id doesn't work

<ionlist 
    id="list" 
    nolines 
    style="margin-top:150px;margin-bottom:15px" 
    visible
>
    <ionitem 
        id="usernameItem" 
        detail="none" 
        wraptext="false" 
        sticky="false" 
        type="default" 
        style="display:flex;position:relative;top:0px;bottom:0px;border-top:1px none rgb(222, 222, 222);border-bottom:1px none rgb(0, 0, 0);height:68px"
    >
        <ioninput 
            id="username" 
            style="display:flex;border-bottom:1px solid rgb(225, 39, 39)" 
            label="Username" 
            labelposition="floating" 
            type="username"
        ></ioninput>
    </ionitem>
    <ionitem 
        id="passwordItem" 
        type="default" 
        style="border-top:1px none rgb(0, 0, 0);border-bottom:1px none rgb(222, 222, 222)" 
        detail="none" 
        wraptext="false" 
        sticky="false"
    >
        <ioninput 
            id="password" 
            style="display:flex;border-bottom:1px solid rgb(225, 39, 39)" 
            labelposition="floating" 
            label="Password" 
            type="password"
        ></ioninput>
    </ionitem>
</ionlist>

Actually, the second ionInput field doesn't show the blue border line but I don't know why

KodeFor.Me
  • 13,069
  • 27
  • 98
  • 166
regard
  • 11
  • 3

1 Answers1

0

I would try to remove the outline of the ioninput. Just add outline: none to the certain element (in this case ioninput).

Nils Walker
  • 159
  • 1
  • 1
  • 9