Recently, I decided to revamp the look of the input controls on my website. I made some changes in the code like so:
//Updating bootstrap variables
$input-bg: $background-color;
$input-color: yellow;
$input-border-color: $gray-500;
$input-focus-border-color: $primary;
$input-placeholder-color: $gray-600;
//Adjusting background
.form-control
.form-control:active,
.form-control:focus,
.form-control:focus:active {
background-color: $input-bg;
}
However, after implementing these changes, I noticed some unexpected behaviors. When the form is loaded with pre-filled data, the background color appears different. Additionally, while typing in the input field, the text color is gray, but upon leaving the input, it turns yellow.
I'm puzzled about what could be causing these color discrepancies. Any insights or suggestions on how to ensure consistent background and text colors?