I’d simply like to change the color of the underline rectangles under the input fields. But I can’t figure out how I’d do this
Could someone help me with this?
Look in the source for SCSS variables. In this case, I would expect you might find something useful in node_modules/ionic-angular/components/input/input.scss.
// App Theme
// --------------------------------------------------
// Ionic apps can have different themes applied, which can
// then be future customized. This import comes last
// so that the above variables are used and Ionic’s
// default are overridden. $text-input-highlight-color-valid: #3ebfe2;
Hi thanks for the fast response!
That’s where I started my quest to find the answer. I searched the input variables but couldn’t find something like “border”.
Doesn’t the text-input-highlight-color just change the color when selected? I’d want to change it on render
Any thought?
Hi, I’m sorry to bother you again, but I’ve changed it in the exact same file as you did and just copy pasted your code but I can’t see any changes. Am I missing something?
Are there any documents that summarize these variables? I am not looking for variables that override ionic defaults in variables.css. I want to be able to make changes in a page’s CSS to the highlight colour of an input field but do not want to change the global settings of the app.
I want to be able to override variables.css settings on specific pages for the input field but I couldn’t find anywhere how to do this on a given page’s CSS file. There are also no documents.
This worked for me in Ionic5 - in my case I had a field that I needed closed for update, and although readonly inhibited keying into the field, I also wanted the valid/invalid bottom border color to be inhibited as well. I didn’t want to use protected as it faded the label and text more than I wanted, so I added my own CSS class closed to the item level