Change ion-input underline color in Ionic 4

akshay ramesh picture akshay ramesh · Nov 8, 2018 · Viewed 14.2k times · Source

How can we change the default underline color of a ion-text in only a single page in Ionic 4?

Answer

soIGuessIonicIsAThing picture soIGuessIonicIsAThing · Nov 10, 2018

The underline is actually a part of the ion-item, not the ion-input.

ion-item {
  --border-color: var(--ion-color-danger, #f1453d);
}