input[type="text"] default placeholder text color too light
currently is #f8f8f8 so can't see white on white.
iOS uses #E5E5E5 according to Ben
Ok placeholder text has been darkened by max in https://github.com/driftyco/ionic/commit/8b8ef122736e310ddeac5618faddaa6b5a264429
but input text (in scss/_forms.scss) is still too light
Placeholder
Input
Make the actual input text #111
On Tue, Nov 12, 2013 at 4:18 PM, Tim Lancina [email protected]:
[image: image]https://f.cloud.github.com/assets/804331/1526704/390f68f4-4be8-11e3-99cd-8d29a8423ce0.png Placeholder
[image: image]https://f.cloud.github.com/assets/804331/1526707/49b781a0-4be8-11e3-94f1-875d9a483050.png Input
— Reply to this email directly or view it on GitHubhttps://github.com/driftyco/ionic/issues/125#issuecomment-28339405 .
Ben Sperry
Co-founder & CEO, Drifty
Email [email protected]
Twitter @helloimben
Skype ben.sperry
u can change your placeholder with the help of some prefixes hope my code helps ::-webkit-input-placeholder { color: red !important; } *:-moz-placeholder { color: red !important; } *:-ms-input-placeholder { / IE10+ */ color: red !important; }
input::-webkit-input-placeholder { color: #999; } input:focus::-webkit-input-placeholder { color: red; }
/* Firefox < 19 */ input:-moz-placeholder { color: #999; } input:focus:-moz-placeholder { color: red; }
/* Firefox > 19 */ input::-moz-placeholder { color: #999; } input:focus::-moz-placeholder { color: red; }
/* Internet Explorer 10 */ input:-ms-input-placeholder { color: #999; } input:focus:-ms-input-placeholder { color: red; }
Ionic/Angulars ng-not-empty class takes care of the js for your.
HTML
<label class="placeholer-parent">
<input type="search" >
<span class="placeholder">Search in Reservations</span>
</label>
SCSS
.placeholer-parent {
position: relative;
.placeholder {
position: absolute;
bottom: 3px;
color: rgba(255, 255, 255, 0.64);
font-size: 15px;
left: 38px;
}
input:focus + .placeholder,
input.ng-not-empty + .placeholder{
display: none
}
}
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.