I use Angular Material version 1.1
I want to change the style of placeholder text of md-autocomplete component. However, i could not select the placeholder as an apart element to play with its styling.
Here you see a codepen to illustrate the problem.
I tried the following dictating codes but they did not work
md-autocomplete{
color: red !important;
}
md-autocomplete-wrap{
color: red !important;
}
input{
color: red !important;
}
Is there any way to do it?
To change the placeholders within an element, the pseudo element
placeholder
should be user.In this case:
How to change
Pseudo elements
Thanks to @Rayon Dabre:
You can use following selector to style the [placeholder] for different browser.
Example on CodePen : http://codepen.io/bigbrov/pen/LNzbqp