<ion-input placeholder="Username" formControlName="userName" class="primary-input"></ion-input>
<ion-input [type]="passwordType" placeholder="Password" formControlName="password" autocomplete="off" class="primary-input">
<ion-icon name="eye" (click)="togglePasswordMode()" ></ion-icon>
</ion-input>
<div class="ion-margin-top">
<ion-button expand="block" (click)="!isSubmitted && login()" >LOGIN</ion-button>
</div>
The above is my code currenty showing like this
currently showing icon at the start but i need to show at the end ..
i tried ion-item with slot="end" works but i dont want use that beacuse textbox show slightly right side ..I need some alternative solution without using ion-item..
I am using ionic 5 ..Please some one help to css EDIT:
.primary-input {
background: aliceblue;
color: #999999;
border-radius: 5px;
margin-bottom: 10px;
}
EDIT: This is the output of ion-item




