Created
October 29, 2019 00:12
-
-
Save RaschidJFR/4aa2e56a80657a5d0443ce89bcf1737c to your computer and use it in GitHub Desktop.
Helper SASS to force Ionic to show invalid item inputs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This class forces Ionic to show invalid item inputs | |
.highlight-errors { | |
--show-inset-highlight: 1; | |
--show-full-highlight: 1; | |
ion-item.ion-invalid { | |
--highlight-height: 2px; | |
--inset-highlight-height: calc(var(--highlight-height) * var(--show-inset-highlight)); | |
--full-highlight-height: calc(var(--highlight-height) * var(--show-full-highlight)); | |
} | |
} | |
ion-item { | |
--highlight-height: 2px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment